Skip to content

Commit

Permalink
iwlwifi: mvm: fix scan request's suspend time parameter
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Bondar authored and Johannes Berg committed Oct 11, 2013
1 parent f39a52b commit 2a31154
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/iwlwifi/mvm/scan.c
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2a31154

Please sign in to comment.