summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-21 18:19:26 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-21 18:19:26 +0000
commitd4211563a5d18b4554512c408ccbca0378666adb (patch)
treeae43f9f9a21d4cf8d433bfb566d2a852c4221884
parent8b52220866acca384ead03d0d0b1c1eb0c3de4c4 (diff)
[package] iwinfo: fix logic flaw in WPA OUI filtering, solves misdetecting various WPA2-PSK only networks as mixed mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30672 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/iwinfo/src/iwinfo_wext_scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/iwinfo/src/iwinfo_wext_scan.c b/package/iwinfo/src/iwinfo_wext_scan.c
index 11725c938..de0258799 100644
--- a/package/iwinfo/src/iwinfo_wext_scan.c
+++ b/package/iwinfo/src/iwinfo_wext_scan.c
@@ -246,7 +246,7 @@ static inline void wext_fill_wpa(unsigned char *iebuf, int buflen, struct iwinfo
/* Not all IEs that start with 0xdd are WPA.
* * So check that the OUI is valid. */
if((ielen < 8) || ((memcmp(&iebuf[offset], wpa_oui, 3) != 0)
- && (iebuf[offset+3] == 0x01)))
+ || (iebuf[offset+3] != 0x01)))
return;
offset += 4;