ath6kl: add error message to explain lack of HT
authorBen Greear <greearb@candelatech.com>
Wed, 21 Oct 2015 21:53:20 +0000 (14:53 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 29 Oct 2015 11:06:54 +0000 (13:06 +0200)
It can take a user a while to understand why their
NIC that advertises 802.11n support cannot actually
do 802.11n.  Print out a warning in the logs to save
the next poor person to use this NIC some trouble.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c

index 6430ab663e37497db8a7995d00effec4254d5e1e..7a67e57f55ee164885edb880d390b65e4589546b 100644 (file)
@@ -3796,6 +3796,9 @@ int ath6kl_cfg80211_init(struct ath6kl *ar)
                ath6kl_band_2ghz.ht_cap.ht_supported = false;
                ath6kl_band_5ghz.ht_cap.cap = 0;
                ath6kl_band_5ghz.ht_cap.ht_supported = false;
+
+               if (ht)
+                       ath6kl_err("Firmware lacks RSN-CAP-OVERRIDE, so HT (802.11n) is disabled.");
        }
 
        if (test_bit(ATH6KL_FW_CAPABILITY_64BIT_RATES,