ath11k: set the multiple bssid hw cap mac80211-mbssid
authorJohn Crispin <john@phrozen.org>
Mon, 11 May 2020 10:49:05 +0000 (12:49 +0200)
committerJohn Crispin <john@phrozen.org>
Sat, 6 Jun 2020 09:21:34 +0000 (11:21 +0200)
This patch sets the SUPPORTS_MULTI_BSSID inside ath11k.

Signed-off-by: John Crispin <john@phrozen.org>
drivers/net/wireless/ath/ath11k/mac.c
drivers/net/wireless/ath/ath11k/wmi.h

index 2cc414717f108abd7ceabdc00a94102318cd3482..a7a9dda39992e0178c332f5353c33881916ec8f5 100644 (file)
@@ -5784,17 +5784,20 @@ static int ath11k_mac_setup_channels_rates(struct ath11k *ar,
 
 static const u8 ath11k_if_types_ext_capa[] = {
        [0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING,
+       [2] = WLAN_EXT_CAPA3_MULTI_BSSID_SUPPORT,
        [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF,
 };
 
 static const u8 ath11k_if_types_ext_capa_sta[] = {
        [0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING,
+       [2] = WLAN_EXT_CAPA3_MULTI_BSSID_SUPPORT,
        [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF,
        [9] = WLAN_EXT_CAPA10_TWT_REQUESTER_SUPPORT,
 };
 
 static const u8 ath11k_if_types_ext_capa_ap[] = {
        [0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING,
+       [2] = WLAN_EXT_CAPA3_MULTI_BSSID_SUPPORT,
        [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF,
        [9] = WLAN_EXT_CAPA10_TWT_RESPONDER_SUPPORT,
 };
@@ -5905,6 +5908,7 @@ static int __ath11k_mac_register(struct ath11k *ar)
        ieee80211_hw_set(ar->hw, QUEUE_CONTROL);
        ieee80211_hw_set(ar->hw, SUPPORTS_TX_FRAG);
        ieee80211_hw_set(ar->hw, REPORTS_LOW_ACK);
+       ieee80211_hw_set(ar->hw, SUPPORTS_MULTI_BSSID);
        if (ht_cap & WMI_HT_CAP_ENABLED) {
                ieee80211_hw_set(ar->hw, AMPDU_AGGREGATION);
                ieee80211_hw_set(ar->hw, TX_AMPDU_SETUP_IN_HW);
index 1a436e1885bc061e652af154dffdbce1f33187f3..cd26004e19384a3235720791fa2cd484d3709ac2 100644 (file)
@@ -109,8 +109,8 @@ enum {
 
 enum {
        WMI_HOST_VDEV_FLAGS_NON_MBSSID_AP       = 1,
-       WMI_HOST_VDEV_FLAGS_TRANSMIT_AP         = 2,
-       WMI_HOST_VDEV_FLAGS_NON_TRANSMIT_AP     = 4,
+       WMI_HOST_VDEV_FLAGS_NON_TRANSMIT_AP     = 2,
+       WMI_HOST_VDEV_FLAGS_TRANSMIT_AP         = 4,
 };
 
 /*