]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ath9k: fix setting the IEEE80211_TX_CTL_CLEAR_PS_FILT flag
authorFelix Fietkau <nbd@openwrt.org>
Thu, 15 Sep 2011 08:03:12 +0000 (10:03 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 19 Sep 2011 19:49:11 +0000 (15:49 -0400)
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>
drivers/net/wireless/ath/ath9k/xmit.c

index a0cd51f28596f6778e53ea7dca67b7aeaea006d1..82718ee1386d1c6af431065c520d5b3fe0cd76a0 100644 (file)
@@ -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 &&