Skip to contentSkip to conversation

ath9k: fix setting the IEEE80211_TX_CTL_CLEAR_PS_FILT flag

PATCH New Felix Fietkau 1 participant 1 message Sep 15, 2011 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/net/wireless/ath/ath9k/xmit.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/xmit.c +1 -0
index 2c6aefa..31a01b5 100644
@@ -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