]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: don't set AP STA to EINVAL
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 24 Mar 2014 11:32:59 +0000 (13:32 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 13 Apr 2014 06:35:57 +0000 (09:35 +0300)
commitade7b82ab7fa3382a3e7fe155cb4fcf7d1e03c91
treeec05bbc99ee2c2576c74dad702c763e9d4198be0
parent17ee369fb6cf295e240004f5091cb553dcdcd175
iwlwifi: mvm: don't set AP STA to EINVAL

Now that mac80211 calls pre_rcu_remove and we set the
fw_id_to_mac_id pointer to -ENOENT before the station is
removed, we don't need to set fw_id_to_mac_id to -EINVAL
when the station is really removed.
Leave fw_id_to_mac_id to be -ENOENT which will let the
drain worker (iwl_mvm_sta_drained_wk) know that this station
is not to be drained.
We don't need to drain this station since it is our AP in
managed mode and we flush all its frames synchronously
anyway.

Setting the AP station to -EINVAL could lead to confusion
since internal stations are also reserved with -EINVAL,
this confusion showed up in the logs as:

Drained sta 0, but it is internal?

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/sta.c