Interworking: Fix build without CONFIG_PCSC=y

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2012-08-30 00:35:53 +03:00 committed by Jouni Malinen
parent 6ffdc2f7bd
commit 1f3a3ec4a4

View file

@ -1319,11 +1319,13 @@ static int interworking_home_sp(struct wpa_supplicant *wpa_s,
int mnc_len = 0; int mnc_len = 0;
if (cred->imsi) if (cred->imsi)
imsi = cred->imsi; imsi = cred->imsi;
#ifdef CONFIG_PCSC
else if (cred->pcsc && wpa_s->conf->pcsc_reader && else if (cred->pcsc && wpa_s->conf->pcsc_reader &&
wpa_s->scard && wpa_s->imsi[0]) { wpa_s->scard && wpa_s->imsi[0]) {
imsi = wpa_s->imsi; imsi = wpa_s->imsi;
mnc_len = wpa_s->mnc_len; mnc_len = wpa_s->mnc_len;
} }
#endif /* CONFIG_PCSC */
if (imsi && build_root_nai(nai, sizeof(nai), imsi, mnc_len, 0) if (imsi && build_root_nai(nai, sizeof(nai), imsi, mnc_len, 0)
== 0) { == 0) {
realm = os_strchr(nai, '@'); realm = os_strchr(nai, '@');