OSDN Git Service

iwlwifi: mvm: fix DQA AP mode station assumption
authorSara Sharon <sara.sharon@intel.com>
Mon, 8 Aug 2016 08:51:24 +0000 (11:51 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 19 Sep 2016 07:09:33 +0000 (10:09 +0300)
commit3ee0f0e23e4f290b2ee0a273b34c6e4f95a209a0
treec57ef66546568aec303c126b7bdc0932a1abedbd
parenta6c934b364948cd4de5bd9ab055bb65206ec70f3
iwlwifi: mvm: fix DQA AP mode station assumption

There was recently a Full AP mode feature added where hostap adds
the station at auth stage, and not assoc.
However, when running with legacy hostapd, we get the auth response
before station was added, and tx_skb_non_sta fails to allocate
a queue, resulting in a complete failure of association.
Take care of this situation as well.
Add a warning when no valid queue is returned at all and make mvm
drop the packet instead of passing it on.
Refactor the function a bit while at it.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c