• H
    rt2x00: Improve TX status handling for BlockAckReq frames · 84e9e8eb
    Helmut Schaa 提交于
    Since rt2800 hardware isn't capable of reporting the TX status of
    BlockAckReq frames implement the TX status handling of BARs in
    rt2x00lib. We keep track of all BARs that are send out and try to
    match incoming BAs to the appropriate BARs. This allows us to report a
    more or less accurate TX status for BAR frames which in turn improves
    BA session stability.
    
    This is loosley based on Christian Lamparter's patch for carl9170
    "carl9170: fix HT peer BA session corruption".
    
    We have to walk the list of pending BARs for every rx'red BA even
    though most BAs don't belong to any of these BARs as they are just
    acknowledging an AMPDU. To keep that overhead low use RCU which allows
    us to walk the list of pending BARs without the need to acquire a lock.
    This however requires us to _copy_ relevant information from the BAR
    (RA, TA, control field, start sequence number) into our BAR list entry.
    Signed-off-by: NHelmut Schaa <helmut.schaa@googlemail.com>
    Tested-by: NAndreas Hartmann <andihartmann@01019freenet.de>
    Acked-by: NGertjan van Wingerde <gwingerde@gmail.com>
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    84e9e8eb
rt2x00.h 34.7 KB