]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
iwlwifi-5000: adjust antennas names in 5000 HW family
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 24 Apr 2008 18:55:31 +0000 (11:55 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 May 2008 19:02:25 +0000 (15:02 -0400)
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>
drivers/net/wireless/iwlwifi/iwl-5000.c

index 1a18ac187cb58474d0568264b221d7c4d63e989f..8bccd9056bfb561d1f49e3ae7630f56742f3eddd 100644 (file)
@@ -263,19 +263,15 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv)
                priv->hw_params.tx_chains_num = 1;
                priv->hw_params.rx_chains_num = 2;
                /* FIXME: move to ANT_A, ANT_B, ANT_C enum */
-               priv->hw_params.valid_tx_ant = IWL_ANTENNA_MAIN;
-               priv->hw_params.valid_rx_ant = (IWL_ANTENNA_MAIN |
-                                               IWL_ANTENNA_AUX);
+               priv->hw_params.valid_tx_ant = ANT_A;
+               priv->hw_params.valid_rx_ant = ANT_AB;
                break;
        case CSR_HW_REV_TYPE_5300:
        case CSR_HW_REV_TYPE_5350:
                priv->hw_params.tx_chains_num = 3;
                priv->hw_params.rx_chains_num = 3;
-               /* FIXME: move to ANT_A, ANT_B, ANT_C enum */
-               priv->hw_params.valid_tx_ant = (IWL_ANTENNA_MAIN |
-                                               IWL_ANTENNA_AUX | 0x04);
-               priv->hw_params.valid_rx_ant = (IWL_ANTENNA_MAIN |
-                                               IWL_ANTENNA_AUX | 0x04);
+               priv->hw_params.valid_tx_ant = ANT_ABC;
+               priv->hw_params.valid_rx_ant = ANT_ABC;
                break;
        }