OpenCloudOS-Kernel/drivers/net/wireless/iwlwifi
Emmanuel Grumbach 2775613f4f iwlwifi: mvm: don't set the drain bit when we flush the AP station
When we disassociate in managed mode, we flush the queues
after mac80211 has already removed the station.
During that time, the pointer to ieee80211_sta to the
fw_id_to_mac_id map is -EINVAL. In that case we should not
set the station as being drained when the last Tx of this
station has exited the shared Tx queue since we are
flushing all the queues anyway.
The draining logic is meant to be used in GO / AP mode only.
In GO / AP mode, we set -EBUSY in the fw_id_to_mac_id map.

This is why testing the ieee80211_sta pointer in the
fw_id_to_mac_id map with IS_ERR isn't enough to set the
station as draining, we need to check that it is -EBUSY.

The only impact of the bug was a print:

Drained sta 1, but it is internal?

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
2014-01-13 18:42:54 +02:00
..
dvm iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
mvm iwlwifi: mvm: don't set the drain bit when we flush the AP station 2014-01-13 18:42:54 +02:00
pcie iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
Kconfig iwlwifi: Kconfig: fix help texts wrt 7260 and 3160 devices 2013-08-16 12:11:47 +02:00
Makefile iwlwifi: remove testmode 2013-06-18 11:51:57 +02:00
iwl-1000.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-2000.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-5000.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-6000.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-7000.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-agn-hw.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-config.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-csr.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-debug.c iwlwifi: export symbols only conditionally 2013-03-06 16:47:56 +01:00
iwl-debug.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-devtrace.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-devtrace.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-drv.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-drv.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-eeprom-parse.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-eeprom-parse.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-eeprom-read.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-eeprom-read.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-fh.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-fw-file.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-fw.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-io.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-io.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-modparams.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-notif-wait.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-notif-wait.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-nvm-parse.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-nvm-parse.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-op-mode.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-phy-db.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-phy-db.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-prph.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-trans.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00