Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122807
b: refs/heads/master
c: f7a276a
h: refs/heads/master
i:
  122805: 22002c1
  122803: 343dc6d
  122799: 1f7bb58
v: v3
  • Loading branch information
Jouni Malinen authored and John W. Linville committed Dec 19, 2008
1 parent d817950 commit 16c54cf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da027ca00a48715364da9a94d4b663029add528d
refs/heads/master: f7a276a625e0b980185d2eb8e8e3e9425a708bee
12 changes: 12 additions & 0 deletions trunk/drivers/net/wireless/ath9k/xmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ static void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb,
struct ieee80211_hw *hw = sc->hw;
struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb);
struct ath_tx_info_priv *tx_info_priv = ATH_TX_INFO_PRIV(tx_info);
int hdrlen, padsize;

DPRINTF(sc, ATH_DBG_XMIT, "TX complete: skb: %p\n", skb);

Expand Down Expand Up @@ -135,6 +136,17 @@ static void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb,
rate_table->info[idx].ratecode & 0x7f;
}

hdrlen = ieee80211_get_hdrlen_from_skb(skb);
padsize = hdrlen & 3;
if (padsize && hdrlen >= 24) {
/*
* Remove MAC header padding before giving the frame back to
* mac80211.
*/
memmove(skb->data + padsize, skb->data, hdrlen);
skb_pull(skb, padsize);
}

ieee80211_tx_status(hw, skb);
}

Expand Down

0 comments on commit 16c54cf

Please sign in to comment.