mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 13:59:24 +01:00
eap: make eap_handle_request public
This commit is contained in:
parent
7e8e8b2ac2
commit
5b19d0454a
@ -173,7 +173,7 @@ static void eap_send_identity_response(struct eap_state *eap, char *identity)
|
||||
eap_send_response(eap, EAP_TYPE_IDENTITY, buf, len + 5);
|
||||
}
|
||||
|
||||
static void eap_handle_request(struct eap_state *eap, uint16_t id,
|
||||
void __eap_handle_request(struct eap_state *eap, uint16_t id,
|
||||
const uint8_t *pkt, size_t len)
|
||||
{
|
||||
enum eap_type type;
|
||||
@ -282,7 +282,7 @@ void eap_rx_packet(struct eap_state *eap, const uint8_t *pkt, size_t len)
|
||||
|
||||
switch ((enum eap_code) code) {
|
||||
case EAP_CODE_REQUEST:
|
||||
eap_handle_request(eap, id, pkt + 4, eap_len - 4);
|
||||
__eap_handle_request(eap, id, pkt + 4, eap_len - 4);
|
||||
return;
|
||||
|
||||
case EAP_CODE_FAILURE:
|
||||
|
@ -59,6 +59,9 @@ size_t eap_get_mtu(struct eap_state *eap);
|
||||
|
||||
void eap_rx_packet(struct eap_state *eap, const uint8_t *pkt, size_t len);
|
||||
|
||||
void __eap_handle_request(struct eap_state *eap, uint16_t id,
|
||||
const uint8_t *pkt, size_t len);
|
||||
|
||||
void eap_init(uint32_t default_mtu);
|
||||
void eap_exit(void);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user