]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: update TX queue before making a copy of the skb
authorBeni Lev <beni.lev@intel.com>
Wed, 10 Aug 2016 14:03:43 +0000 (17:03 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 15 Sep 2016 15:35:20 +0000 (18:35 +0300)
commitf6272d65cf9e0fe930b97382df1df676ccd48f4f
tree9b0339745a6c61304570b672603e47063d876062
parentfa6ea5d32b46b004aa8de8ffc1cd1d1fe44f70ce
iwlwifi: mvm: update TX queue before making a copy of the skb

Off-channel action frames (such as ANQP frames) must be sent either on
the AUX queue or on the offchannel queue, otherwise the firmware will
cause a SYSASSERT.

In the current implementation, the queue to be used is correctly set in
the original skb, but this is done after it is copied.  Thus the copy
remains with the original, incorrect queue.

Fix this by setting the queue in the original skb before copying it.

Fixes: commit b52ed2aa084c ("iwlwifi: mvm: don't override the rate with the AMSDU len")
Cc: stable@vger.kernel.org # v4.6+
Signed-off-by: Beni Lev <beni.lev@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c