aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-08-29 21:35:53 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-29 21:35:53 (GMT)
commit1f3a3ec4a4c365a340c424018c4e140698d2486a (patch)
treebd0ddc821bc2364b5e73ba3b540926e4c435153a /wpa_supplicant/interworking.c
parent6ffdc2f7bd496ace7a46e055f9714e7db4b1f722 (diff)
downloadhostap-1f3a3ec4a4c365a340c424018c4e140698d2486a.zip
hostap-1f3a3ec4a4c365a340c424018c4e140698d2486a.tar.gz
hostap-1f3a3ec4a4c365a340c424018c4e140698d2486a.tar.bz2
Interworking: Fix build without CONFIG_PCSC=y
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 7b5b20e..7741fdc 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -1319,11 +1319,13 @@ static int interworking_home_sp(struct wpa_supplicant *wpa_s,
int mnc_len = 0;
if (cred->imsi)
imsi = cred->imsi;
+#ifdef CONFIG_PCSC
else if (cred->pcsc && wpa_s->conf->pcsc_reader &&
wpa_s->scard && wpa_s->imsi[0]) {
imsi = wpa_s->imsi;
mnc_len = wpa_s->mnc_len;
}
+#endif /* CONFIG_PCSC */
if (imsi && build_root_nai(nai, sizeof(nai), imsi, mnc_len, 0)
== 0) {
realm = os_strchr(nai, '@');