ath6kl: fix tx/rx antenna reporting for 2x2 devices
authorBen Greear <greearb@candelatech.com>
Mon, 30 Nov 2015 23:01:47 +0000 (15:01 -0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Dec 2015 12:08:53 +0000 (14:08 +0200)
My previous patch incorrectly reported the antenna
for 2x2 devices. It should be a mask instead of
a numeric count. This patch fixes that.

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 81ac8c59f0ecd2c458350e579f141ba1819033d5..7f3f94fbf1571612623e1214153f236faf1128af 100644 (file)
@@ -3930,8 +3930,8 @@ int ath6kl_cfg80211_init(struct ath6kl *ar)
                ath6kl_band_5ghz.ht_cap.mcs.rx_mask[0] = 0xff;
                ath6kl_band_2ghz.ht_cap.mcs.rx_mask[1] = 0xff;
                ath6kl_band_5ghz.ht_cap.mcs.rx_mask[1] = 0xff;
-               ar->hw.tx_ant = 2;
-               ar->hw.rx_ant = 2;
+               ar->hw.tx_ant = 0x3; /* mask, 2 antenna */
+               ar->hw.rx_ant = 0x3;
        } else {
                ath6kl_band_2ghz.ht_cap.mcs.rx_mask[0] = 0xff;
                ath6kl_band_5ghz.ht_cap.mcs.rx_mask[0] = 0xff;