]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: Fix regular scan priority
authorAvraham Stern <avraham.stern@intel.com>
Tue, 7 Jul 2015 13:53:42 +0000 (16:53 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 28 Jul 2015 08:36:02 +0000 (11:36 +0300)
commit8d06085cda80d43b47300d1fb93405dc63dd8e76
tree50006c0e53f24833dd9d0319f8913168959e09c5
parent31912549d9202881dfdf8e5a55e0b31d5a9e4a22
iwlwifi: mvm: Fix regular scan priority

The code checks the total number of iterations to differentiate
between regular scan and scheduled scan. However, regular scan has
a total of one iteration, not zero. As a result, regular scan will
have lower priority than it should have, and in case scheduled
scan is already running when regular scan is requested, regular scan
will be delayed until scheduled scan is aborted.
Fix that by checking for total iterations number of one as an
identifier for regular scan.

Fixes: 33d1e7b73a2b ("iwlwifi: mvm: rename generic_scan_cmd functions to dwell")
Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/scan.c