aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2017-02-15 10:07:02 (GMT)
committerJouni Malinen <j@w1.fi>2017-02-19 14:01:17 (GMT)
commit5972dc73c112eca8decc81a9461c2ceadfe4c72b (patch)
tree9a4c22dbfbeb55874226d37045e00ee886e0bb8d /src
parent84ea61cffefaa85b63b5a8db6f9c02818a7594e3 (diff)
downloadhostap-5972dc73c112eca8decc81a9461c2ceadfe4c72b.zip
hostap-5972dc73c112eca8decc81a9461c2ceadfe4c72b.tar.gz
hostap-5972dc73c112eca8decc81a9461c2ceadfe4c72b.tar.bz2
mesh: Use correct rate in VHT and HT mixed environment
Let mesh STA A be a STA which has config disable_ht=0 and disable_vht=1. Let mesh STA B be a STA which has config disable_ht=0 and disable_vht=0. The mesh STA A and B was connected. Previously, the mesh STA A sent frame with VHT rate even though its VHT was disabled. This commit fixes the issue by checking the local BSS VHT configuration. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/ap/ieee802_11_vht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ap/ieee802_11_vht.c b/src/ap/ieee802_11_vht.c
index f30f63b..8d06620 100644
--- a/src/ap/ieee802_11_vht.c
+++ b/src/ap/ieee802_11_vht.c
@@ -334,7 +334,7 @@ u16 copy_sta_vht_capab(struct hostapd_data *hapd, struct sta_info *sta,
{
/* Disable VHT caps for STAs associated to no-VHT BSSes. */
if (!vht_capab ||
- hapd->conf->disable_11ac ||
+ !hapd->iconf->ieee80211ac || hapd->conf->disable_11ac ||
!check_valid_vht_mcs(hapd->iface->current_mode, vht_capab)) {
sta->flags &= ~WLAN_STA_VHT;
os_free(sta->vht_capabilities);