Skip to content

RFC ath10k: Add QCA vendor command/attr support to filter neighbor BSS frames

Karthikeyan Periyasamy ath10k linux-wireless 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest2 patches 0 repliesNew
  2. v1 RFC2 patches 7 repliesSuperseded

Changes in v2 from the cover letter

* Solved kbuild test warning

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ath10k: add wmi interface for vdev_set_neighbor_rx_paramdrivers/net/wireless/ath/ath10k/wmi-ops.h drivers/net/wireless/ath/ath10k/wmi.c drivers/net/wireless/ath/ath10k/wmi.h+136 -10 replies
2/2ath10k: Add QCA vendor command/attr support to filter neighbor BSS framesdrivers/net/wireless/ath/ath10k/Makefile drivers/net/wireless/ath/ath10k/core.h drivers/net/wireless/ath/ath10k/htt_rx.c +3 more+1083 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFCv2 0/2] ath10k: Add QCA vendor command/attr support to filter neighbor BSS frames

Allow AP to receive neighbor BSSs frames and user-space can get the statistics of the stations associated with neighbor BSSs.

User-space can use QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER command to configure RX filter to receive frames from stations that are active on the operating channel, but not associated with the local device (e.g., STAs associated with neighbor APs). Filtering is done based on a list of BSSIDs and STA MAC addresses added by the user. This command is also used to fetch statistics of unassociated stations. The attributes used with this command are defined in enum qca_wlan_vendor_attr_bss_filter.

User can add/delete the filter by specifying the BSSID/STA MAC address in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type as BSSID/STA in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE and add/delete action in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION using the QCA vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.

User can get the statistics of an unassociated station by specifying the MAC address in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION using the QCA vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. User can also get the statistics of all unassociated stations by specifying the Broadcast MAC address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with above procedure. In response, ath10k driver specify statistics information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.

NOTE: Tested with debug firmware

v2:
* Solved kbuild test warning

Karthikeyan Periyasamy (2):
ath10k: add wmi interface for vdev_set_neighbor_rx_param
ath10k: Add QCA vendor command/attr support to filter neighbor BSS
frames

 drivers/net/wireless/ath/ath10k/Makefile  |   3 +-
 drivers/net/wireless/ath/ath10k/core.h    |   3 +
 drivers/net/wireless/ath/ath10k/htt_rx.c  |   5 +
 drivers/net/wireless/ath/ath10k/mac.c     |  15 +-
 drivers/net/wireless/ath/ath10k/vendor.c  | 770 ++++++++++++++++++++++++++++++
 drivers/net/wireless/ath/ath10k/vendor.h  | 289 +++++++++++
 drivers/net/wireless/ath/ath10k/wmi-ops.h |  28 +-
 drivers/net/wireless/ath/ath10k/wmi.c     |  33 ++
 drivers/net/wireless/ath/ath10k/wmi.h     |  76 +++
 9 files changed, 1219 insertions(+), 3 deletions(-)
 create mode 100644 drivers/net/wireless/ath/ath10k/vendor.c
 create mode 100644 drivers/net/wireless/ath/ath10k/vendor.h
Signature · 1 line
1.9.1