mac80211: fix tx issue with CCMP PN generated in hardware

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2016-09-12 11:25:20 +02:00
parent c7d5bc8197
commit f3747020e2

View file

@ -404,7 +404,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
sta->tx_stats.packets[skb_get_queue_mapping(skb)]++;
- if (fast_tx->pn_offs) {
+ if (pn_offs) {
+ if (pn_offs && (key_conf->flags & IEEE80211_KEY_FLAG_GENERATE_IV)) {
u64 pn;
- u8 *crypto_hdr = skb->data + fast_tx->pn_offs;
+ u8 *crypto_hdr = skb->data + pn_offs;