• Yogesh Ashok Powar's avatar
    mwifiex: correct event header length · 21bc7af6
    Yogesh Ashok Powar authored
    While decoding received event packet from firmware, 4 bytes
    of interface header are already removed unconditionally.
    So for handling event only 4 more bytes needs to be pulled.
    This is achieved by changing event header length to 4.
    
    Almost all the events, except BA stream related and AMSDU
    aggregation control events, do not have the payload in their
    event skb. Such events handling depends only on the event ID.
    This event ID is the first four bytes of the event skb, which
    is copied to a separate variable before pulling the skb header.
    Hence event handling worked only for those events that didn't
    have payload in event skb.
    
    This patch fixes the broken event path of the events with
    payload in their event skb without harming existing working
    event path for the events without payload.
    Signed-off-by: default avatarYogesh Ashok Powar <yogeshp@marvell.com>
    Signed-off-by: default avatarKiran Divekar <dkiran@marvell.com>
    Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    21bc7af6
sdio.h 9.65 KB