diff mbox

[1/2] ath6kl: fix tx/rx antenna reporting for 2x2 devices.

Message ID 1448924508-25672-1-git-send-email-greearb@candelatech.com (mailing list archive)
State Accepted
Delegated to: Kalle Valo
Headers show

Commit Message

Ben Greear Nov. 30, 2015, 11:01 p.m. UTC
From: Ben Greear <greearb@candelatech.com>

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>
---
 drivers/net/wireless/ath/ath6kl/cfg80211.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Kalle Valo Dec. 11, 2015, 1:33 p.m. UTC | #1
greearb@candelatech.com writes:

> From: Ben Greear <greearb@candelatech.com>
>
> 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>

Both patches applied, thanks.
diff mbox

Patch

diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c
index 5e982e2..3ce2584 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -3931,8 +3931,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;