mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-28 09:35:30 +02:00
[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
This commit is contained in:
parent
8b52220866
commit
d4211563a5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user