• C
    p54u: reset skb's data/tail pointer on requeue · d47c3ceb
    Christian Lamparter 提交于
    (Only important for USB V1 Adaptors)
    
    If an incoming frame wasn't accepted by p54_rx function
    the skb will be reused for new frames...
    
    But, we must not forget to set the skb's data pointers into
    the same state in which it was initialized by p54u_init_urbs.
    
    Otherwise we either end up with 16 bytes less on every requeue,
    or if a new frame is worthy enough to be accepted, the data is
    in the wrong place (urb->transfer_buffer wasn't updated!) and mac80211
    has a hard time to recognize it...
    Signed-off-by: NChristian Lamparter <chunkeey@web.de>
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    d47c3ceb
p54usb.c 23.8 KB