]> git.karo-electronics.de Git - linux-beck.git/commit
iwlwifi: mvm: restructure scan parameters calculation
authorAlexander Bondar <alexander.bondar@intel.com>
Wed, 12 Mar 2014 15:31:19 +0000 (17:31 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 18 Mar 2014 19:15:38 +0000 (21:15 +0200)
commit8a110d9be1c14a95f502343b8b4783eb3228e1e3
tree74b642f80d269687bc2a68e36f10023ab9e8179a
parent65d66628500a40e2acbf1546af536801d65e0d14
iwlwifi: mvm: restructure scan parameters calculation

Some scan parameters should be dependent on traffic conditions.
Centralize conditions verification in one function and obtain
scan max out-of-channel and suspend time in that new function.
Rely on bound interfaces indication instead of association state
to calculate scan parameters. If no bound interfaces use default
values for out-of-channel and suspend time parameters.

Additionally, get rid of NL80211_SCAN_FLAG_LOW_PRIORITY checks
since no use case for this exists so far.

Signed-off-by: Alexander Bondar <alexander.bondar@intel.com>
[reword commit log a bit]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/scan.c