[package] iwinfo: fix logic flaw in WPA OUI filtering, solves misdetecting various...
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 21 Feb 2012 18:19:26 +0000 (18:19 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 21 Feb 2012 18:19:26 +0000 (18:19 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30672 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/iwinfo/src/iwinfo_wext_scan.c

index 11725c9..de02587 100644 (file)
@@ -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;
This page took 0.032298 seconds and 4 git commands to generate.