]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: Add per peer statistics to compute FCS error rate
authorAnkita Bajaj <bankita@codeaurora.org>
Thu, 27 Sep 2018 15:01:57 +0000 (18:01 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 12 Oct 2018 10:56:34 +0000 (12:56 +0200)
commitc64e674f0da7a50dd889cee0c6a6d8e949d3f254
tree32b79aceecd4d9bc56f93ee30a7ea3620248d6db
parent3d206427d53c3a865adb81232c27e08576a8ea10
nl80211: Add per peer statistics to compute FCS error rate

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: Ankita Bajaj <bankita@codeaurora.org>
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/nl80211.c