]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Interworking: Fix build without CONFIG_PCSC=y
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 29 Aug 2012 21:35:53 +0000 (00:35 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 29 Aug 2012 21:35:53 +0000 (00:35 +0300)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/interworking.c

index 7b5b20eb7f37a5ac3c10581ebcd86cdac689c99c..7741fdce94708682077e456204ff54e5769debfe 100644 (file)
@@ -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, '@');