aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_glue.c
diff options
context:
space:
mode:
authorVidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>2017-06-02 13:08:20 (GMT)
committerJouni Malinen <j@w1.fi>2017-06-06 00:42:32 (GMT)
commitb5db6e5dc4426c6c7c6c0a5468d80493fd299626 (patch)
treed5f1a107980ef2baa1a5d083bd2b067e6985aebc /wpa_supplicant/wpas_glue.c
parent002087651478644070673f4db2ef4218f00ce6a1 (diff)
downloadhostap-b5db6e5dc4426c6c7c6c0a5468d80493fd299626.zip
hostap-b5db6e5dc4426c6c7c6c0a5468d80493fd299626.tar.gz
hostap-b5db6e5dc4426c6c7c6c0a5468d80493fd299626.tar.bz2
eap_proxy: Support multiple SIMs in get_imsi()
This allows the eap_proxy mechanism to be used with multiple SIMs by following the configured sim_num to index which SIM to use for when fetching the IMSI through eap_proxy. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wpas_glue.c')
-rw-r--r--wpa_supplicant/wpas_glue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c
index fb38396..ae246f9 100644
--- a/wpa_supplicant/wpas_glue.c
+++ b/wpa_supplicant/wpas_glue.c
@@ -930,7 +930,7 @@ static void wpa_supplicant_eap_proxy_cb(void *ctx)
struct wpa_supplicant *wpa_s = ctx;
size_t len;
- wpa_s->mnc_len = eapol_sm_get_eap_proxy_imsi(wpa_s->eapol,
+ wpa_s->mnc_len = eapol_sm_get_eap_proxy_imsi(wpa_s->eapol, -1,
wpa_s->imsi, &len);
if (wpa_s->mnc_len > 0) {
wpa_s->imsi[len] = '\0';