iwlwifi: mvm: fix scan request's suspend time parameter
authorAlexander Bondar <alexander.bondar@intel.com>
Sun, 15 Sep 2013 14:17:48 +0000 (16:17 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Oct 2013 13:04:34 +0000 (15:04 +0200)
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>
drivers/net/wireless/iwlwifi/mvm/scan.c

index 621fb71f282a88e9a285bb3d4b2b26a1b2fef275..3a06832e8e90200390b05e22944531caa9ac1bab 100644 (file)
@@ -93,10 +93,10 @@ static inline __le32 iwl_mvm_scan_max_out_time(struct ieee80211_vif *vif)
 
 static inline __le32 iwl_mvm_scan_suspend_time(struct ieee80211_vif *vif)
 {
-       if (vif->bss_conf.assoc)
-               return cpu_to_le32(vif->bss_conf.beacon_int);
-       else
+       if (!vif->bss_conf.assoc)
                return 0;
+
+       return cpu_to_le32(ieee80211_tu_to_usec(vif->bss_conf.beacon_int));
 }
 
 static inline __le32
This page took 0.027098 seconds and 5 git commands to generate.