]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mesh: Use correct rate in VHT and HT mixed environment
authorMasashi Honma <masashi.honma@gmail.com>
Wed, 15 Feb 2017 10:07:02 +0000 (19:07 +0900)
committerJouni Malinen <j@w1.fi>
Sun, 19 Feb 2017 14:01:17 +0000 (16:01 +0200)
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>
src/ap/ieee802_11_vht.c

index f30f63bc5709418f30f73478c7f97c4f7d9e7f7f..8d0662078bcf198ad0a1d5ede94305a6d2b506b2 100644 (file)
@@ -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);