iwlwifi: block the queues when we send ADD_STA for uAPSD
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 24 Nov 2015 12:55:18 +0000 (14:55 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 13 Dec 2015 06:52:53 +0000 (08:52 +0200)
commit156f92f2b4711a0e8478c596557a1bd5ca69b02d
tree47e6d2c91a114abb36459a800733557e2bba65e3
parentdcbb4746286abe50300deef1858cfd6dc1b9c198
iwlwifi: block the queues when we send ADD_STA for uAPSD

We send an ADD_STA to instruct the firmware to release
frames despite the peer being in PS.
Since the ADD_STA command and the Tx frame that comes
immediately afterwards can be reordered by the DMA engine,
we need to block the Tx queues until the firmware replies
with the ADD_STA response.

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