iwlwifi: mvm: reset mvm->scan_type when firmware is started
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 3 Jan 2016 20:23:40 +0000 (22:23 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 7 Jan 2016 17:01:25 +0000 (19:01 +0200)
commit4ca87a5f58454711cc8cc550a7844efebd9bc001
tree71ba2c3c89f9f852e1eae8c5fef495432f782330
parent6fa52430f0b3a45a31fb706084288884532e857c
iwlwifi: mvm: reset mvm->scan_type when firmware is started

If we don't reset the scan type when the firmware is
started, we will think the firmware is still configured
after the interface has been brought down. When we will
bring it up again, we will not configure the scan type
in firmware and it will crash with the following assert:

0x0000100A | ADVANCED_SYSASSERT

Fixes: 355346ba3050 ("iwlwifi: mvm: configure scheduled scan according to traffic conditions")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c