iwlagn: fix scan tx antenna setting on 5Ghz band
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 23 Dec 2010 14:12:30 +0000 (15:12 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Jan 2011 19:35:11 +0000 (14:35 -0500)
commitcd017f25e391dfabaca185bb4a5aefd02fd6c0ca
tree19a121d534e8604e37aac8a9290baa0365547035
parentcd2c5486526b744fb505e18c9d981b35feaf283a
iwlagn: fix scan tx antenna setting on 5Ghz band

Looks that we do not set correctly antennas when scanning
on 5Ghz band and when bluetooth is enabled, because
priv->cfg->scan_tx_antennas[band] is only defined for
IEEE80211_BAND_2GHZ.

To fix we check band before limiting antennas to first one.
This allow to remove hard coded cfg->scan_tx_antennas[band].

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-6000.c
drivers/net/wireless/iwlwifi/iwl-agn-lib.c
drivers/net/wireless/iwlwifi/iwl-core.h