diff --git a/src/eap_peer/eap_proxy.h b/src/eap_peer/eap_proxy.h index 3b4dceffc..23cdbe698 100644 --- a/src/eap_peer/eap_proxy.h +++ b/src/eap_peer/eap_proxy.h @@ -40,7 +40,8 @@ eap_proxy_packet_update(struct eap_proxy_sm *eap_proxy, u8 *eapReqData, int eap_proxy_sm_get_status(struct eap_proxy_sm *sm, char *buf, size_t buflen, int verbose); -int eap_proxy_get_imsi(char *imsi_buf, size_t *imsi_len); +int eap_proxy_get_imsi(struct eap_proxy_sm *eap_proxy, char *imsi_buf, + size_t *imsi_len); int eap_proxy_notify_config(struct eap_proxy_sm *sm, struct eap_peer_config *config); diff --git a/src/eap_peer/eap_proxy_dummy.c b/src/eap_peer/eap_proxy_dummy.c index cd97fb66d..d84f01234 100644 --- a/src/eap_peer/eap_proxy_dummy.c +++ b/src/eap_peer/eap_proxy_dummy.c @@ -63,7 +63,8 @@ int eap_proxy_sm_get_status(struct eap_proxy_sm *sm, char *buf, size_t buflen, } -int eap_proxy_get_imsi(char *imsi_buf, size_t *imsi_len) +int eap_proxy_get_imsi(struct eap_proxy_sm *eap_proxy, char *imsi_buf, + size_t *imsi_len) { return -1; } diff --git a/src/eapol_supp/eapol_supp_sm.c b/src/eapol_supp/eapol_supp_sm.c index d34df7c2f..9d7aef04b 100644 --- a/src/eapol_supp/eapol_supp_sm.c +++ b/src/eapol_supp/eapol_supp_sm.c @@ -2058,7 +2058,7 @@ int eapol_sm_get_eap_proxy_imsi(struct eapol_sm *sm, char *imsi, size_t *len) #ifdef CONFIG_EAP_PROXY if (sm->eap_proxy == NULL) return -1; - return eap_proxy_get_imsi(imsi, len); + return eap_proxy_get_imsi(sm->eap_proxy, imsi, len); #else /* CONFIG_EAP_PROXY */ return -1; #endif /* CONFIG_EAP_PROXY */