]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: convert scan_status to a bitmap
authorLuciano Coelho <luciano.coelho@intel.com>
Tue, 10 Feb 2015 08:42:26 +0000 (10:42 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 29 Apr 2015 10:12:47 +0000 (13:12 +0300)
commit71720241aa258abc7302eb72b10ced1a621549da
treee4710d9652918f9d3b9c32dcdc0fc811c11fdd96
parentdb6da7211902724777ca59b1878e16cd884e5cf0
iwlwifi: mvm: convert scan_status to a bitmap

LMAC scans cannot handle more than one scan at a time, but UMAC scans
can.  To avoid confusion we should combine the states of these two
types of scans.  To do so, we need to support mutliple scans at the
same time for UMAC.

This commit changes the scan_status element from a single value to a
bitmask of running scan types for LMAC.  Later, we will modify UMAC
scans to use the same state bitmask.

Additionally, add stopping scan flags for scheduled and regular scans.
This makes it easier to differentiate and handle stop requests
triggered by the driver and spontaneous stops generated by the
firmware.

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>
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/scan.c