iwlwifi: mvm: add a scan timeout for regular scans
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 11 Mar 2016 07:20:37 +0000 (09:20 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 30 Mar 2016 13:24:48 +0000 (16:24 +0300)
commit728e825f81b1fe29eb177148fcabfa55a7f4c1bb
tree487b5ba41dd509dcbd0c3b7036086cf4bfa52bb6
parent097129c9e62540122b63cba79c1843a2602bec37
iwlwifi: mvm: add a scan timeout for regular scans

If something goes wrong with the firmware and we never get a scan
complete notification, we stay stuck forever.  In order to avoid this
situation, add a timeout and trigger an NMI if it expires before
receiving the notification., so we can clean things up.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
drivers/net/wireless/intel/iwlwifi/mvm/scan.c