On Thu, 2007-06-28 at 22:35 -0700, Michael Wu wrote: > On Thursday 21 June 2007 06:39, Johannes Berg wrote: > > + skb_set_network_header(skb, len + sizeof(struct ieee80211_hdr)); > > + skb_set_transport_header(skb, len + sizeof(struct ieee80211_hdr)); > > + > Hm, just noticed a potential problem with this. sizeof(struct ieee80211_hdr) > can't be used since ieee80211 headers are variable sized and the smallest > frames can end up being smaller than the 4 addr header. Uh, let me think, yeah sounds about right, we'll have to get the actual header length. There's a function for that though. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part