]> git.baikalelectronics.ru Git - kernel.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)
commit79bf9a5e358d5ebcf85f325d6868add9100a99db
tree74b642f80d269687bc2a68e36f10023ab9e8179a
parent92b33d58557f9aa4666bfe75f09c118e6b9eb940
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