Changeset 1719
- Timestamp:
- 09/20/06 03:14:07 (2 years ago)
- Files:
-
- trunk/ath/if_ath.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ath/if_ath.c
r1714 r1719 5243 5243 struct ath_softc *sc = dev->priv; 5244 5244 struct ieee80211com *ic = &sc->sc_ic; 5245 struct ieee80211_frame *wh; 5245 5246 int extra = A_MAX(sizeof(struct ath_tx_radiotap_header), 5246 5247 A_MAX(sizeof(wlan_ng_prism2_header), ATHDESC_HEADER_SIZE)); … … 5261 5262 skb_orphan(skb); 5262 5263 5264 wh = (struct ieee80211_frame *) skb->data; 5265 if (IEEE80211_QOS_HAS_SEQ(wh)) { 5266 /* Unlike in rx_capture, we're freeing the skb at the end 5267 * anyway, so we don't need to worry about using a copy */ 5268 int headersize = ieee80211_hdrsize(wh); 5269 int padbytes = roundup(headersize, 4) - headersize; 5270 if (padbytes > 0) { 5271 memmove(skb->data + padbytes, skb->data, headersize); 5272 skb_pull(skb, padbytes); 5273 } 5274 } 5275 5263 5276 if (skb_headroom(skb) < extra && 5264 5277 pskb_expand_head(skb, extra, 0, GFP_ATOMIC)) {
