]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4aea9e4acc3b35f9de446e672d8b743b3e58e257
treec57ef66546568aec303c126b7bdc0932a1abedbd
parentc728ccdad98d2694dc193941c3bf8be1e9e6d9ca
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