]> 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)
commit12263f1f2587f164adbf235b71fce5fbe115fdbf
tree9b0339745a6c61304570b672603e47063d876062
parenteb539470ed355ecb8c9688837ef9657b66b926f6
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 3c639604c876 ("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