From: Felix Fietkau Date: Thu, 15 Sep 2011 08:03:12 +0000 (+0200) Subject: ath9k: fix setting the IEEE80211_TX_CTL_CLEAR_PS_FILT flag X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6e82bc4a5bf3a1ce597324c8667baa6a2ed12604;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index a0cd51f2859..82718ee1386 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, skb_push(skb, padsize); memmove(skb->data, skb->data + padsize, padpos); + hdr = (struct ieee80211_hdr *) skb->data; } if ((vif && vif->type != NL80211_IFTYPE_AP &&