mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
Fixed wpa_scan_get_max_rate() to clear the basicrate flag when determining
the highest rate.
This commit is contained in:
parent
886a807fb5
commit
6e33ca4529
@ -67,14 +67,14 @@ int wpa_scan_get_max_rate(const struct wpa_scan_res *res)
|
|||||||
|
|
||||||
ie = wpa_scan_get_ie(res, WLAN_EID_SUPP_RATES);
|
ie = wpa_scan_get_ie(res, WLAN_EID_SUPP_RATES);
|
||||||
for (i = 0; ie && i < ie[1]; i++) {
|
for (i = 0; ie && i < ie[1]; i++) {
|
||||||
if (ie[i + 2] > rate)
|
if ((ie[i + 2] & 0x7f) > rate)
|
||||||
rate = ie[i + 2];
|
rate = ie[i + 2] & 0x7f;
|
||||||
}
|
}
|
||||||
|
|
||||||
ie = wpa_scan_get_ie(res, WLAN_EID_EXT_SUPP_RATES);
|
ie = wpa_scan_get_ie(res, WLAN_EID_EXT_SUPP_RATES);
|
||||||
for (i = 0; ie && i < ie[1]; i++) {
|
for (i = 0; ie && i < ie[1]; i++) {
|
||||||
if (ie[i + 2] > rate)
|
if ((ie[i + 2] & 0x7f) > rate)
|
||||||
rate = ie[i + 2];
|
rate = ie[i + 2] & 0x7f;
|
||||||
}
|
}
|
||||||
|
|
||||||
return rate;
|
return rate;
|
||||||
|
Loading…
Reference in New Issue
Block a user