linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 1/3] mwl8k: fix rf_antenna rx argument for AP
@ 2011-02-17 22:45 Thomas Pedersen
  2011-02-17 22:45 ` [PATCH V2 2/3] mwl8k: Tell mac80211 we have rate adaptation in FW Thomas Pedersen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Thomas Pedersen @ 2011-02-17 22:45 UTC (permalink / raw)
  To: linux-wireless; +Cc: buytenh

From: Nishant Sarmukadam <nishants@marvell.com>

When configuring rx antennas using CMD_RF_ANTENNA, the argument input is
the number of antennas to be enabled. For AP, we support 3 rx antennas
and hence set the field to 3. For tx antennas, value is a bitmap, so 0x7
enables all three.

Signed-off-by: Nishant Sarmukadam <nishants@marvell.com>
Signed-off-by: Pradeep Nemavat <pnemavat@marvell.com>
Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
---
 drivers/net/wireless/mwl8k.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index af4f2c6..f79da1b 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -3945,9 +3945,13 @@ static int mwl8k_config(struct ieee80211_hw *hw, u32 changed)
 		if (rc)
 			goto out;
 
-		rc = mwl8k_cmd_rf_antenna(hw, MWL8K_RF_ANTENNA_RX, 0x7);
-		if (!rc)
-			rc = mwl8k_cmd_rf_antenna(hw, MWL8K_RF_ANTENNA_TX, 0x7);
+		rc = mwl8k_cmd_rf_antenna(hw, MWL8K_RF_ANTENNA_RX, 0x3);
+		if (rc)
+			wiphy_warn(hw->wiphy, "failed to set # of RX antennas");
+		rc = mwl8k_cmd_rf_antenna(hw, MWL8K_RF_ANTENNA_TX, 0x7);
+		if (rc)
+			wiphy_warn(hw->wiphy, "failed to set # of TX antennas");
+
 	} else {
 		rc = mwl8k_cmd_rf_tx_power(hw, conf->power_level);
 		if (rc)
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-22 20:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-17 22:45 [PATCH V2 1/3] mwl8k: fix rf_antenna rx argument for AP Thomas Pedersen
2011-02-17 22:45 ` [PATCH V2 2/3] mwl8k: Tell mac80211 we have rate adaptation in FW Thomas Pedersen
2011-02-17 22:45 ` [PATCH V2 3/3] mwl8k: Invert tx queues for set_hw_spec and set_edca_params Thomas Pedersen
2011-02-22 19:49 ` [PATCH V2 1/3] mwl8k: fix rf_antenna rx argument for AP John W. Linville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).