aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJean Trivelly <jean.trivelly@intel.com>2014-03-28 13:41:36 (GMT)
committerJouni Malinen <j@w1.fi>2014-03-31 20:35:08 (GMT)
commit62f736dd04c3c61223264619749257c90dcad053 (patch)
treeed9bf3657c2b113377a465de11a1d81ae3714adb /wpa_supplicant/interworking.c
parent729897a38872c0e5f283ff90a96247ed583f80dd (diff)
downloadhostap-62f736dd04c3c61223264619749257c90dcad053.zip
hostap-62f736dd04c3c61223264619749257c90dcad053.tar.gz
hostap-62f736dd04c3c61223264619749257c90dcad053.tar.bz2
Interworking: Init scard when a credential requires SIM access
When an ANQP fetch is triggered and ANQP_3GPP_CELLULAR_NETWORK info is required, initialize scard to be ready when comparing ANQP and credentials. Signed-off-by: Jean Trivelly <jean.trivelly@intel.com>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 662e729..bb96113 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -260,8 +260,10 @@ static int interworking_anqp_send_req(struct wpa_supplicant *wpa_s,
info_ids[num_info_ids++] = ANQP_IP_ADDR_TYPE_AVAILABILITY;
if (all || cred_with_nai_realm(wpa_s))
info_ids[num_info_ids++] = ANQP_NAI_REALM;
- if (all || cred_with_3gpp(wpa_s))
+ if (all || cred_with_3gpp(wpa_s)) {
info_ids[num_info_ids++] = ANQP_3GPP_CELLULAR_NETWORK;
+ wpa_supplicant_scard_init(wpa_s, NULL);
+ }
if (all || cred_with_domain(wpa_s))
info_ids[num_info_ids++] = ANQP_DOMAIN_NAME;
wpa_hexdump(MSG_DEBUG, "Interworking: ANQP Query info",