[PATCH v2 0/5] wifi: cfg80211/mac80211: Set/get wiphy parameters on per-radio basis

Roopni Devanathan
2025-01-24T17:18:42Z

Currently wiphy level configurations like RTS threshold, TX power etc.
lacks radio level get/set support and same value is applied to all radios
of wiphy. Add support to parse radio id attribute and use the same to
apply the configuration to corresponding radio of a multi radio wiphy.

This design will not disturb the global wiphy configuration. If radio id is
not passed from userspace, then the existing design of setting attribute to
all the radios will hold good.

Also add support to get the radio specific attributes in a multi-radio
wiphy from userspace.

The attributes that can be handled for each radio are:
NL80211_ATTR_WIPHY_FREQ
NL80211_ATTR_WIPHY_ANTENNA_TX
NL80211_ATTR_WIPHY_ANTENNA_RX
NL80211_ATTR_WIPHY_RETRY_SHORT
NL80211_ATTR_WIPHY_RETRY_LONG
NL80211_ATTR_WIPHY_FRAG_THRESHOLD
NL80211_ATTR_WIPHY_RTS_THRESHOLD
NL80211_ATTR_WIPHY_COVERAGE_CLASS
NL80211_ATTR_WIPHY_DYN_AC

With this design, the new userspace designed to set/get per-radio
parameters can work with both traditional and multi-radio wiphys.

v2:
- Rebase on ToT. No code change.

Rameshkumar Sundaram (2):
wifi: cfg80211: set tx power per radio in a wiphy
wifi: mac80211: set tx power per radio in a wiphy

Roopni Devanathan (3):
wifi: cfg80211: Add Support to Set RTS Threshold for each Radio
wifi: cfg80211: Report per-radio RTS threshold to userspace
wifi: mac80211: Set RTS threshold on per-radio basis

drivers/net/wireless/ath/ar5523/ar5523.c | 2 +-
drivers/net/wireless/ath/ath10k/mac.c | 2 +-
drivers/net/wireless/ath/ath11k/mac.c | 2 +-
drivers/net/wireless/ath/ath12k/mac.c | 2 +-
drivers/net/wireless/ath/ath6kl/cfg80211.c | 3 +-
drivers/net/wireless/ath/ath9k/htc_drv_main.c | 2 +-
drivers/net/wireless/ath/wcn36xx/main.c | 2 +-
drivers/net/wireless/ath/wil6210/cfg80211.c | 2 +-
.../broadcom/brcm80211/brcmfmac/cfg80211.c | 4 +-
.../net/wireless/intel/iwlwifi/mvm/mac80211.c | 2 +-
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 2 +-
.../net/wireless/marvell/mwifiex/cfg80211.c | 4 +-
drivers/net/wireless/marvell/mwl8k.c | 2 +-
.../net/wireless/mediatek/mt76/mt7615/main.c | 2 +-
drivers/net/wireless/mediatek/mt76/mt76x02.h | 2 +-
.../net/wireless/mediatek/mt76/mt76x02_util.c | 2 +-
.../net/wireless/mediatek/mt76/mt7915/main.c | 2 +-
.../net/wireless/mediatek/mt76/mt7921/main.c | 2 +-
.../net/wireless/mediatek/mt76/mt7925/main.c | 2 +-
.../net/wireless/mediatek/mt76/mt7996/main.c | 2 +-
drivers/net/wireless/mediatek/mt7601u/main.c | 2 +-
.../wireless/microchip/wilc1000/cfg80211.c | 4 +-
drivers/net/wireless/purelifi/plfxlc/mac.c | 2 +-
.../net/wireless/quantenna/qtnfmac/cfg80211.c | 4 +-
.../net/wireless/ralink/rt2x00/rt2800lib.c | 2 +-
.../net/wireless/ralink/rt2x00/rt2800lib.h | 2 +-
drivers/net/wireless/realtek/rtl8xxxu/core.c | 2 +-
drivers/net/wireless/realtek/rtw88/mac80211.c | 2 +-
drivers/net/wireless/realtek/rtw89/mac80211.c | 2 +-
drivers/net/wireless/rsi/rsi_91x_mac80211.c | 1 +
drivers/net/wireless/silabs/wfx/sta.c | 2 +-
drivers/net/wireless/silabs/wfx/sta.h | 2 +-
drivers/net/wireless/st/cw1200/sta.c | 2 +-
drivers/net/wireless/st/cw1200/sta.h | 2 +-
drivers/net/wireless/ti/wl1251/main.c | 2 +-
drivers/net/wireless/ti/wlcore/main.c | 2 +-
drivers/net/wireless/virtual/mac80211_hwsim.c | 3 +-
.../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 4 +-
include/net/cfg80211.h | 22 +++++++-
include/net/mac80211.h | 2 +-
include/uapi/linux/nl80211.h | 9 +++
net/mac80211/cfg.c | 25 ++++++++-
net/mac80211/driver-ops.h | 6 +-
net/mac80211/trace.h | 24 +++++++-
net/mac80211/util.c | 7 ++-
net/wireless/core.c | 18 ++++++
net/wireless/nl80211.c | 55 +++++++++++++++----
net/wireless/rdev-ops.h | 12 ++--
net/wireless/trace.h | 16 ++++--
net/wireless/wext-compat.c | 11 ++--
50 files changed, 213 insertions(+), 81 deletions(-)

base-commit: e7ef944b3e2c31b608800925e784f67596375770
--
2.17.1