Patchwork Identification of HS20 Network

login
register
mail settings
Submitter Shyam
Date July 4, 2014, 4:32 p.m.
Message ID <CAAdcsmsLm1nkNDBMUyhprs6vrAKDFPrQoftQ9De6-x1xuc8Aww@mail.gmail.com>
Download mbox | patch
Permalink /patch/367142/
State New
Headers show

Comments

Shyam - July 4, 2014, 4:32 p.m.
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@gmail.com>
---
 wpa_supplicant/hs20_supplicant.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

     return 1;

Patch

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;