diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-15 04:03:12 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-19 15:49:11 -0400 |
commit | 6e82bc4a5bf3a1ce597324c8667baa6a2ed12604 (patch) | |
tree | 9ee0750fb4847fe0434a00d2e1ead08ed86cb8ff /drivers/net/wireless/ath/ath9k/xmit.c | |
parent | 42cecc3465578e442b794851fd8802dcb85a192c (diff) |
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 <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/xmit.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index a0cd51f28596..82718ee1386d 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -1887,6 +1887,7 @@ int ath_tx_start(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
1887 | 1887 | ||
1888 | skb_push(skb, padsize); | 1888 | skb_push(skb, padsize); |
1889 | memmove(skb->data, skb->data + padsize, padpos); | 1889 | memmove(skb->data, skb->data + padsize, padpos); |
1890 | hdr = (struct ieee80211_hdr *) skb->data; | ||
1890 | } | 1891 | } |
1891 | 1892 | ||
1892 | if ((vif && vif->type != NL80211_IFTYPE_AP && | 1893 | if ((vif && vif->type != NL80211_IFTYPE_AP && |