]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
iwlwifi: scan correct setting of valid rx_chains
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 6 Oct 2008 08:05:29 +0000 (16:05 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Oct 2008 22:14:57 +0000 (18:14 -0400)
This patch sets rx_chain bitmap correctly according hw configuration.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-scan.c

index bf855c35b0c1258953c3bf653aab386d895551c7..debdbd94dda8c62c31d46c5a042f88387ca06c97 100644 (file)
@@ -703,7 +703,7 @@ static void iwl_bg_request_scan(struct work_struct *data)
        u16 cmd_len;
        enum ieee80211_band band;
        u8 n_probes = 2;
-       u8 rx_chain = 0x7; /* bitmap: ABC chains */
+       u8 rx_chain = priv->hw_params.valid_rx_ant;
 
        conf = ieee80211_get_hw_conf(priv->hw);