wcn36xx: Fix HT40 capability for 2Ghz band
authorLoic Poulain <loic.poulain@linaro.org>
Wed, 20 Oct 2021 13:38:53 +0000 (15:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:15:59 +0000 (19:15 +0100)
commit 960ae77f25631bbe4e3aafefe209b52e044baf31 upstream.

All wcn36xx controllers are supposed to support HT40 (and SGI40),
This doubles the maximum bitrate/throughput with compatible APs.

Tested with wcn3620 & wcn3680B.

Cc: stable@vger.kernel.org
Fixes: 8e84c2582169 ("wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware")
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1634737133-22336-1-git-send-email-loic.poulain@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/wcn36xx/main.c

index 6e91bdb2e08d42b005a85d4c712a166adafbca68..bd1c83aeea60679fb92cb290aa666ed274826cea 100644 (file)
@@ -135,7 +135,9 @@ static struct ieee80211_supported_band wcn_band_2ghz = {
                .cap =  IEEE80211_HT_CAP_GRN_FLD |
                        IEEE80211_HT_CAP_SGI_20 |
                        IEEE80211_HT_CAP_DSSSCCK40 |
-                       IEEE80211_HT_CAP_LSIG_TXOP_PROT,
+                       IEEE80211_HT_CAP_LSIG_TXOP_PROT |
+                       IEEE80211_HT_CAP_SGI_40 |
+                       IEEE80211_HT_CAP_SUP_WIDTH_20_40,
                .ht_supported = true,
                .ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K,
                .ampdu_density = IEEE80211_HT_MPDU_DENSITY_16,