[PATCH] Identification of HS20 Network

Shyam shyamms2003
Fri Jul 4 09:32:49 PDT 2014


This fixes a bug in identifying the HS20 Network.
Fixed bug in identifying the RSN attribute. In some case the proto field
might have value - RSN|WPA in which case this check fails.

Signed-off-by: Shyam <shyam.kyo at gmail.com>
---
 wpa_supplicant/hs20_supplicant.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/hs20_supplicant.c
b/wpa_supplicant/hs20_supplicant.c
index 257aa6d..c1c3591 100644
--- a/wpa_supplicant/hs20_supplicant.c
+++ b/wpa_supplicant/hs20_supplicant.c
@@ -98,7 +98,7 @@ int is_hs20_network(struct wpa_supplicant *wpa_s, struct
wpa_ssid *ssid,
         return 0;
     if (!(ssid->pairwise_cipher & WPA_CIPHER_CCMP))
         return 0;
-    if (ssid->proto != WPA_PROTO_RSN)
+    if (!(ssid->proto & WPA_PROTO_RSN))
         return 0;

     return 1;
-- 
1.7.9.5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20140704/7a0ae768/attachment.htm>



More information about the Hostap mailing list