mirror of https://github.com/hak5/openwrt.git
iwinfo: fix logic flaw in WPA OUI filtering, solves misdetecting various WPA2-PSK only networks as mixed mode
SVN-Revision: 30672lede-17.01
parent
5e6bc97d0c
commit
184c535815
|
@ -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.
|
/* Not all IEs that start with 0xdd are WPA.
|
||||||
* * So check that the OUI is valid. */
|
* * So check that the OUI is valid. */
|
||||||
if((ielen < 8) || ((memcmp(&iebuf[offset], wpa_oui, 3) != 0)
|
if((ielen < 8) || ((memcmp(&iebuf[offset], wpa_oui, 3) != 0)
|
||||||
&& (iebuf[offset+3] == 0x01)))
|
|| (iebuf[offset+3] != 0x01)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
offset += 4;
|
offset += 4;
|
||||||
|
|
Loading…
Reference in New Issue