aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-5000.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-10-07 21:37:29 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-10-31 19:00:03 -0400
commit5d664a41a0a8c612f66bcb3c2a6f395e9afa6beb (patch)
treefa256b0edb1a7d94dac56c639cce19adacf8c1c8 /drivers/net/wireless/iwlwifi/iwl-5000.c
parentbe5d56ed885a2897ec813eab4a8055d495816e9a (diff)
iwlwifi: take a valid antenna upon rate scale init
This patch selects a valid antennae upon rate scale init. This solves a SYSASSERT complaining that the driver is setting a non valid antenna in the LQ CMD. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index c1300fb71615..56a3f0c84a1e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -811,10 +811,14 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv)
811 811
812 switch (priv->hw_rev & CSR_HW_REV_TYPE_MSK) { 812 switch (priv->hw_rev & CSR_HW_REV_TYPE_MSK) {
813 case CSR_HW_REV_TYPE_5100: 813 case CSR_HW_REV_TYPE_5100:
814 priv->hw_params.tx_chains_num = 1;
815 priv->hw_params.rx_chains_num = 2;
816 priv->hw_params.valid_tx_ant = ANT_B;
817 priv->hw_params.valid_rx_ant = ANT_AB;
818 break;
814 case CSR_HW_REV_TYPE_5150: 819 case CSR_HW_REV_TYPE_5150:
815 priv->hw_params.tx_chains_num = 1; 820 priv->hw_params.tx_chains_num = 1;
816 priv->hw_params.rx_chains_num = 2; 821 priv->hw_params.rx_chains_num = 2;
817 /* FIXME: move to ANT_A, ANT_B, ANT_C enum */
818 priv->hw_params.valid_tx_ant = ANT_A; 822 priv->hw_params.valid_tx_ant = ANT_A;
819 priv->hw_params.valid_rx_ant = ANT_AB; 823 priv->hw_params.valid_rx_ant = ANT_AB;
820 break; 824 break;