summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-02-21 18:19:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-02-21 18:19:26 +0000
commit184c535815efdb1e71a7452da19d3ad4d1527757 (patch)
treee424f2d53fa5139e698a22cef65e1ea068407761 /package
parent5e6bc97d0ccd3fbf82e03896f8d5987f534ce19e (diff)
downloadmtk-20170518-184c535815efdb1e71a7452da19d3ad4d1527757.zip
mtk-20170518-184c535815efdb1e71a7452da19d3ad4d1527757.tar.gz
mtk-20170518-184c535815efdb1e71a7452da19d3ad4d1527757.tar.bz2
iwinfo: fix logic flaw in WPA OUI filtering, solves misdetecting various WPA2-PSK only networks as mixed mode
SVN-Revision: 30672
Diffstat (limited to 'package')
-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 11725c9..de02587 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;