[PATCH]Fixed a bug in identifying the HS20 Network
Shyam
shyamms2003
Fri Jul 4 10:01:18 PDT 2014
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/8073ceb7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fixed-bug-in-identifying-the-RSN-attribute.-In-some-.patch
Type: text/x-patch
Size: 902 bytes
Desc: not available
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20140704/8073ceb7/attachment.bin>
More information about the Hostap
mailing list