3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 02:19:26 +01:00

eap: make eap_handle_request public

This commit is contained in:
Tim Kourt 2018-02-13 16:00:40 -08:00 committed by Denis Kenzior
parent 7e8e8b2ac2
commit 5b19d0454a
2 changed files with 5 additions and 2 deletions

View File

@ -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:

View File

@ -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);