diff options
author | Alexander Bondar <alexander.bondar@intel.com> | 2013-09-15 10:17:48 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-10-11 09:04:34 -0400 |
commit | 2a3115434a773fdc34ea125890f75fbc0b34dcaf (patch) | |
tree | 6b426c28e114d632e9fb39848f982ebf1091e06f | |
parent | f39a52bfaf65de87a363d471ed02a3fef0752a1d (diff) |
iwlwifi: mvm: fix scan request's suspend time parameter
This fix is related to a scan request when associated (bgscan).
FW expects suspend time parameter in micro seconds while the driver
provides a value in time units. This bug leads to a high traffic
latency when scan is requested while traffic is in progress.
Signed-off-by: Alexander Bondar <alexander.bondar@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/scan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/scan.c b/drivers/net/wireless/iwlwifi/mvm/scan.c index 621fb71f282a..3a06832e8e90 100644 --- a/drivers/net/wireless/iwlwifi/mvm/scan.c +++ b/drivers/net/wireless/iwlwifi/mvm/scan.c | |||
@@ -93,10 +93,10 @@ static inline __le32 iwl_mvm_scan_max_out_time(struct ieee80211_vif *vif) | |||
93 | 93 | ||
94 | static inline __le32 iwl_mvm_scan_suspend_time(struct ieee80211_vif *vif) | 94 | static inline __le32 iwl_mvm_scan_suspend_time(struct ieee80211_vif *vif) |
95 | { | 95 | { |
96 | if (vif->bss_conf.assoc) | 96 | if (!vif->bss_conf.assoc) |
97 | return cpu_to_le32(vif->bss_conf.beacon_int); | ||
98 | else | ||
99 | return 0; | 97 | return 0; |
98 | |||
99 | return cpu_to_le32(ieee80211_tu_to_usec(vif->bss_conf.beacon_int)); | ||
100 | } | 100 | } |
101 | 101 | ||
102 | static inline __le32 | 102 | static inline __le32 |