]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
iwlagn: use 6 Mbps rate for no-CCK scans
authorJohannes Berg <johannes.berg@intel.com>
Fri, 14 Oct 2011 19:54:48 +0000 (12:54 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Nov 2011 20:53:56 +0000 (15:53 -0500)
When userspace requested that a scan not be
done with CCK rates, use 6 Mbps. This is used
for example for P2P scanning.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-scan.c

index e5d727f537d08eb09080fa8170609771cb230b5b..a26fbd33a5d9369824b3f58c02a1ea19d5d02dd0 100644 (file)
@@ -678,7 +678,8 @@ static int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
                        priv->contexts[IWL_RXON_CTX_BSS].active.flags &
                                                RXON_FLG_CHANNEL_MODE_MSK)
                                       >> RXON_FLG_CHANNEL_MODE_POS;
-               if (chan_mod == CHANNEL_MODE_PURE_40) {
+               if ((priv->scan_request && priv->scan_request->no_cck) ||
+                   chan_mod == CHANNEL_MODE_PURE_40) {
                        rate = IWL_RATE_6M_PLCP;
                } else {
                        rate = IWL_RATE_1M_PLCP;