ath9k: fix setting the IEEE80211_TX_CTL_CLEAR_PS_FILT flag
PATCH 1/1 ath9k: fix setting the IEEE80211_TX_CTL_CLEAR_PS_FILT flag
When the driver inserts padding between the 802.11 header and data, it needs to set the hdr variable to the new header location.
Signed-off-by Felix Fietkau <[email protected]>
--- drivers/net/wireless/ath/ath9k/xmit.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/xmit.c +1 -0
@@ -1902,6 +1902,7 @@ int ath_tx_start(struct ieee80211_hw *hw, struct sk_buff *skb,skb_push (skb, padsize);memmove (skb->data, skb->data + padsize, padpos); + hdr = (struct ieee80211_hdr *) skb->data; } }
Signature · 1 line
1.7.3.2