ath10k: check for encryption before adding MIC_LEN
authorBob Copeland <me@bobcopeland.com>
Wed, 9 Sep 2015 16:47:35 +0000 (12:47 -0400)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 17 Sep 2015 10:48:41 +0000 (13:48 +0300)
commitbc76c28719d4333248a516fd4d469ab741b44b63
tree7658432c51fd028242f39260f87c256eacdeff85
parent0d031c8995bcc065f9c5778069f2131f7d92d4d5
ath10k: check for encryption before adding MIC_LEN

In the case of raw mode without nohwcrypt parameter, we
should still make sure the frame is protected before
adding MIC_LEN to avoid skb_under_panic errors.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htt_tx.c