Skip to content

Commit

Permalink
ath9k: fix setting the IEEE80211_TX_CTL_CLEAR_PS_FILT flag
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Sep 19, 2011
1 parent 42cecc3 commit 6e82bc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/ath/ath9k/xmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1887,6 +1887,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;
}

if ((vif && vif->type != NL80211_IFTYPE_AP &&
Expand Down

0 comments on commit 6e82bc4

Please sign in to comment.