Hi Stanislaw, On Mon, 2010-12-20 at 09:05 -0800, Stanislaw Gruszka wrote: > 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. This fix choose first valid antenna. > > Signed-off-by: Stanislaw Gruszka <sgruszka@xxxxxxxxxx> > --- > drivers/net/wireless/iwlwifi/iwl-agn-lib.c | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c > index 4bc82fc..099039c 100644 > --- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c > +++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c > @@ -1499,8 +1499,7 @@ int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif) > priv->cfg->bt_params->advanced_bt_coexist && > priv->bt_full_concurrent) { > /* operated as 1x1 in full concurrency mode */ > - scan_tx_antennas = first_antenna( > - priv->cfg->scan_tx_antennas[band]); > + scan_tx_antennas = first_antenna(scan_tx_antennas); If its is 2.4, we need to use the correct tx antenna, I think we can remove this block of code all together since check already done above. if (priv->cfg->scan_tx_antennas[band]) scan_tx_antennas = priv->cfg->scan_tx_antennas[band]; Wey -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html