AP: Unset HT capabilities for an HT association request without WMM
HT requires QoS/WMM, so unset HT capabilities for a station whose association request does not include a valid WMM IE. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
c41d0840a1
commit
54d3dc9184
1 changed files with 6 additions and 2 deletions
|
@ -312,10 +312,14 @@ void hostapd_2040_coex_action(struct hostapd_data *hapd,
|
||||||
u16 copy_sta_ht_capab(struct hostapd_data *hapd, struct sta_info *sta,
|
u16 copy_sta_ht_capab(struct hostapd_data *hapd, struct sta_info *sta,
|
||||||
const u8 *ht_capab, size_t ht_capab_len)
|
const u8 *ht_capab, size_t ht_capab_len)
|
||||||
{
|
{
|
||||||
/* Disable HT caps for STAs associated to no-HT BSSes. */
|
/*
|
||||||
|
* Disable HT caps for STAs associated to no-HT BSSes, or for stations
|
||||||
|
* that did not specify a valid WMM IE in the (Re)Association Request
|
||||||
|
* frame.
|
||||||
|
*/
|
||||||
if (!ht_capab ||
|
if (!ht_capab ||
|
||||||
ht_capab_len < sizeof(struct ieee80211_ht_capabilities) ||
|
ht_capab_len < sizeof(struct ieee80211_ht_capabilities) ||
|
||||||
hapd->conf->disable_11n) {
|
!(sta->flags & WLAN_STA_WMM) || hapd->conf->disable_11n) {
|
||||||
sta->flags &= ~WLAN_STA_HT;
|
sta->flags &= ~WLAN_STA_HT;
|
||||||
os_free(sta->ht_capabilities);
|
os_free(sta->ht_capabilities);
|
||||||
sta->ht_capabilities = NULL;
|
sta->ht_capabilities = NULL;
|
||||||
|
|
Loading…
Reference in a new issue