aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPurushottam Kushwaha <pkushwah@codeaurora.org>2019-06-14 07:50:01 (GMT)
committerJouni Malinen <jouni@codeaurora.org>2019-06-14 20:10:51 (GMT)
commitdcc31e7957c2ff949bce4cb82e3a2b1f4090e6cc (patch)
tree15617d5ab4a4a2ee917347a33cff600b1be67fb7
parent4fc5c00c784c2d564f9c01fb4f2a5998811b68e7 (diff)
downloadhostap-dcc31e7957c2ff949bce4cb82e3a2b1f4090e6cc.zip
hostap-dcc31e7957c2ff949bce4cb82e3a2b1f4090e6cc.tar.gz
hostap-dcc31e7957c2ff949bce4cb82e3a2b1f4090e6cc.tar.bz2
HS 2.0: Skip credential without EAP method for roaming consortium match
EAP method is required for a credential that matches configured roaming_consortium with an Interworking AP. Hence skip credentials which do not have EAP method specified for this match. This fixes an issue where a credential that cannot work without EAP method from NAI Realms information is selected first based on roaming consortium. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--wpa_supplicant/interworking.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index dfab9f5..dd35571 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -1388,6 +1388,9 @@ static struct wpa_cred * interworking_credentials_available_roaming_consortium(
cred->num_roaming_consortiums == 0)
continue;
+ if (!cred->eap_method)
+ continue;
+
if ((cred->roaming_consortium_len == 0 ||
!roaming_consortium_match(ie, anqp,
cred->roaming_consortium,