diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-04-24 14:55:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-07 15:02:25 -0400 |
commit | 1179f18df9fa3449ae6011042df50d9b9b012814 (patch) | |
tree | da91ee3322a178823f9f1e921f1ecda4b624bc53 | |
parent | 33fd503346ad86bd7470a0f8c4c3080393d14233 (diff) |
iwlwifi-5000: adjust antennas names in 5000 HW family
This patch use new defines for antennas
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 1a18ac187cb5..8bccd9056bfb 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -263,19 +263,15 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv) | |||
263 | priv->hw_params.tx_chains_num = 1; | 263 | priv->hw_params.tx_chains_num = 1; |
264 | priv->hw_params.rx_chains_num = 2; | 264 | priv->hw_params.rx_chains_num = 2; |
265 | /* FIXME: move to ANT_A, ANT_B, ANT_C enum */ | 265 | /* FIXME: move to ANT_A, ANT_B, ANT_C enum */ |
266 | priv->hw_params.valid_tx_ant = IWL_ANTENNA_MAIN; | 266 | priv->hw_params.valid_tx_ant = ANT_A; |
267 | priv->hw_params.valid_rx_ant = (IWL_ANTENNA_MAIN | | 267 | priv->hw_params.valid_rx_ant = ANT_AB; |
268 | IWL_ANTENNA_AUX); | ||
269 | break; | 268 | break; |
270 | case CSR_HW_REV_TYPE_5300: | 269 | case CSR_HW_REV_TYPE_5300: |
271 | case CSR_HW_REV_TYPE_5350: | 270 | case CSR_HW_REV_TYPE_5350: |
272 | priv->hw_params.tx_chains_num = 3; | 271 | priv->hw_params.tx_chains_num = 3; |
273 | priv->hw_params.rx_chains_num = 3; | 272 | priv->hw_params.rx_chains_num = 3; |
274 | /* FIXME: move to ANT_A, ANT_B, ANT_C enum */ | 273 | priv->hw_params.valid_tx_ant = ANT_ABC; |
275 | priv->hw_params.valid_tx_ant = (IWL_ANTENNA_MAIN | | 274 | priv->hw_params.valid_rx_ant = ANT_ABC; |
276 | IWL_ANTENNA_AUX | 0x04); | ||
277 | priv->hw_params.valid_rx_ant = (IWL_ANTENNA_MAIN | | ||
278 | IWL_ANTENNA_AUX | 0x04); | ||
279 | break; | 275 | break; |
280 | } | 276 | } |
281 | 277 | ||