• A
    nl80211: Add per peer statistics to compute FCS error rate · 0d4e14a3
    Ankita Bajaj 提交于
    Add support for drivers to report the total number of MPDUs received
    and the number of MPDUs received with an FCS error from a specific
    peer. These counters will be incremented only when the TA of the
    frame matches the MAC address of the peer irrespective of FCS
    error.
    
    It should be noted that the TA field in the frame might be corrupted
    when there is an FCS error and TA matching logic would fail in such
    cases. Hence, FCS error counter might not be fully accurate, but it can
    provide help in detecting bad RX links in significant number of cases.
    This FCS error counter without full accuracy can be used, e.g., to
    trigger a kick-out of a connected client with a bad link in AP mode to
    force such a client to roam to another AP.
    Signed-off-by: NAnkita Bajaj <bankita@codeaurora.org>
    Signed-off-by: NJouni Malinen <jouni@codeaurora.org>
    Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
    0d4e14a3
nl80211.c 426.9 KB