Felix Fietkau 9d0f50b802 mac80211: ensure that mgmt tx skbs have tailroom for encryption
Some drivers use IEEE80211_KEY_FLAG_SW_MGMT_TX to indicate that management
frames need to be software encrypted. Since normal data packets are still
encrypted by the hardware, crypto_tx_tailroom_needed_cnt gets decremented
after key upload to hw. This can lead to passing skbs to ccmp_encrypt_skb,
which don't have the necessary tailroom for software encryption.

Change the code to add tailroom for encrypted management packets, even if
crypto_tx_tailroom_needed_cnt is 0.

Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2019-02-01 11:08:02 +01:00
..
2018-06-18 22:40:32 +02:00
2018-06-18 22:40:32 +02:00
2018-06-12 16:19:22 -07:00
2017-02-10 14:31:51 -05:00
2018-06-18 22:40:32 +02:00
2018-09-05 10:03:14 +02:00
2018-09-05 10:15:48 +02:00
2018-02-22 21:13:03 +01:00
2014-04-09 14:49:43 +02:00
2012-03-13 14:54:16 -04:00
2018-02-22 21:13:03 +01:00