hostapd: Add require_ht configuration parameter
This can be used to configure hostapd to reject association with any station that does not support HT PHY.
This commit is contained in:
parent
e67b55fb11
commit
2944824315
6 changed files with 31 additions and 3 deletions
|
@ -162,7 +162,8 @@ int hostapd_prepare_rates(struct hostapd_data *hapd,
|
|||
hapd->iface->num_rates++;
|
||||
}
|
||||
|
||||
if (hapd->iface->num_rates == 0 || num_basic_rates == 0) {
|
||||
if ((hapd->iface->num_rates == 0 || num_basic_rates == 0) &&
|
||||
(!hapd->iconf->ieee80211n || !hapd->iconf->require_ht)) {
|
||||
wpa_printf(MSG_ERROR, "No rates remaining in supported/basic "
|
||||
"rate sets (%d,%d).",
|
||||
hapd->iface->num_rates, num_basic_rates);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue