wcn36xx: Add wcn36xx_smd_set_bss_vht_params()
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Thu, 10 Sep 2020 15:05:51 +0000 (16:05 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 21 Sep 2020 13:14:27 +0000 (16:14 +0300)
This commit adds wcn36xx_smd_set_bss_vht_params(). The job of this function
is to decide if the BSS is VHT capable and if so set the appropriate bit
in the BSS parameter structure for passing to the firmware.

VHT Channel width set is not set since we don't support 160MHz.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200910150552.2178882-7-bryan.odonoghue@linaro.org
drivers/net/wireless/ath/wcn36xx/smd.c

index ab9b6116cc752390b2728b446240f1b0478e6048..d5089aa382bdcc7ecc92b1fc26b141cb3aaa98b4 100644 (file)
@@ -146,6 +146,19 @@ static void wcn36xx_smd_set_bss_ht_params(struct ieee80211_vif *vif,
        }
 }
 
+void
+wcn36xx_smd_set_bss_vht_params(struct ieee80211_vif *vif,
+                              struct ieee80211_sta *sta,
+                              struct wcn36xx_hal_config_bss_params_v1 *bss);
+void
+wcn36xx_smd_set_bss_vht_params(struct ieee80211_vif *vif,
+                              struct ieee80211_sta *sta,
+                              struct wcn36xx_hal_config_bss_params_v1 *bss)
+{
+       if (sta && sta->vht_cap.vht_supported)
+               bss->vht_capable = 1;
+}
+
 static void wcn36xx_smd_set_sta_ht_params(struct ieee80211_sta *sta,
                struct wcn36xx_hal_config_sta_params *sta_params)
 {