diff options
author | Luciano Coelho <luciano.coelho@intel.com> | 2015-03-19 23:58:33 +0300 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2015-04-29 13:12:48 +0300 |
commit | 507e4cda52581cb9e9fb130000f066f68686188f (patch) | |
tree | fce809a94896bfd619a94147164eb8de6ba2d1c9 /drivers/net/wireless/iwlwifi/iwl-devtrace.c | |
parent | 4171bb3346dd8e9f3e996fd43271616181208285 (diff) | |
download | linux-507e4cda52581cb9e9fb130000f066f68686188f.tar.xz |
iwlwifi: mvm: generalize the other-scan stopping code
Instead of hardcoding the differences between UMAC scans and LMAC
scans (which in this case is the number of simultaneous scans that can
run), introduce a max_scans variable and stop scans of the other type
(i.e. stop sched scan if regular scan is being attempted and
vice-versa) if the number of running scans reached the maximum.
Add a function that checks if the maximum number of scans was reached
and stops the appropriate scan to make room for the new scan.
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-devtrace.c')
0 files changed, 0 insertions, 0 deletions