iwlwifi: mvm: Fix a few EBS error handling bugs
authorHaim Dreyfuss <haim.dreyfuss@intel.com>
Tue, 13 Jan 2015 09:54:51 +0000 (11:54 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 1 Feb 2015 13:57:23 +0000 (15:57 +0200)
commit5a4b2afa77dea0e0ce6aa1c3f0dbf90dd9a681eb
treeaf71b78cd8ced244bfdda1df7371639cafc760ae
parent4cf677fd547d7671835d799e4d377b949510c642
iwlwifi: mvm: Fix a few EBS error handling bugs

Last EBS status wasn't set to success in the initialization, which
caused the first scan to be without EBS. Fix that.

When EBS is not enabled by the driver, the FW still sends ebs_status success,
which can override EBS failure state. Consider only EBS failures, to avoid
such override. Last_ebs_success is set back to true upon disconnection.

Last_ebs_success wasn't set in umac scan abort flow, fix that too.

Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
Signed-off-by: David Spinadel <david.spinadel@intel.com>
Reviewed-by: Alexander Bondar <alexander.bondar@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/ops.c
drivers/net/wireless/iwlwifi/mvm/scan.c