mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
hostapd: Do not allow HT in 11b mode
When the HW mode has been configured as 11b, disable HT operations. Signed-hostap: Sujith Manoharan <c_manoha@qca.qualcomm.com>
This commit is contained in:
parent
dbe7aa2225
commit
1ed08baf89
@ -1090,6 +1090,12 @@ static int hostapd_config_check_bss(struct hostapd_bss_config *bss,
|
|||||||
#endif /* CONFIG_IEEE80211R */
|
#endif /* CONFIG_IEEE80211R */
|
||||||
|
|
||||||
#ifdef CONFIG_IEEE80211N
|
#ifdef CONFIG_IEEE80211N
|
||||||
|
if (conf->ieee80211n && conf->hw_mode == HOSTAPD_MODE_IEEE80211B) {
|
||||||
|
bss->disable_11n = 1;
|
||||||
|
wpa_printf(MSG_ERROR, "HT (IEEE 802.11n) in 11b mode is not "
|
||||||
|
"allowed, disabling HT capabilites");
|
||||||
|
}
|
||||||
|
|
||||||
if (conf->ieee80211n &&
|
if (conf->ieee80211n &&
|
||||||
bss->ssid.security_policy == SECURITY_STATIC_WEP) {
|
bss->ssid.security_policy == SECURITY_STATIC_WEP) {
|
||||||
bss->disable_11n = 1;
|
bss->disable_11n = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user