diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-20 17:36:57 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:57:18 -0400 |
commit | b097ad29752f909ec1121ac3dc57d348f08dd8d7 (patch) | |
tree | 4b5e4b302771c74a8771199112c54f4e6b3144bc /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 1ecf9fc1317f8df91eb1d74360f408558d657478 (diff) |
iwlwifi: support truly passive scanning
If passive scanning is requested we should not ask the
microcode to do active scanning after detecting traffic
on a channel -- that should only be used when an active
scan is requested but some channels are marked passive.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 4df9b4b5072a..c15d0cfb93bc 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -3078,7 +3078,12 @@ static void iwl3945_bg_request_scan(struct work_struct *data) | |||
3078 | band = IEEE80211_BAND_2GHZ; | 3078 | band = IEEE80211_BAND_2GHZ; |
3079 | } else if (priv->scan_bands & BIT(IEEE80211_BAND_5GHZ)) { | 3079 | } else if (priv->scan_bands & BIT(IEEE80211_BAND_5GHZ)) { |
3080 | scan->tx_cmd.rate = IWL_RATE_6M_PLCP; | 3080 | scan->tx_cmd.rate = IWL_RATE_6M_PLCP; |
3081 | scan->good_CRC_th = IWL_GOOD_CRC_TH; | 3081 | /* |
3082 | * If active scaning is requested but a certain channel | ||
3083 | * is marked passive, we can do active scanning if we | ||
3084 | * detect transmissions. | ||
3085 | */ | ||
3086 | scan->good_CRC_th = is_active ? IWL_GOOD_CRC_TH : 0; | ||
3082 | band = IEEE80211_BAND_5GHZ; | 3087 | band = IEEE80211_BAND_5GHZ; |
3083 | } else { | 3088 | } else { |
3084 | IWL_WARN(priv, "Invalid scan band count\n"); | 3089 | IWL_WARN(priv, "Invalid scan band count\n"); |