linux-loongson/drivers/net/wireless/mediatek/mt7601u
Roopni Devanathan b74947b4f6 wifi: cfg80211/mac80211: Add support to get radio index
Currently, per-radio attributes are set on per-phy basis, i.e., all the
radios present in a wiphy will take attributes values sent from user. But
each radio in a wiphy can get different values from userspace based on
its requirement.

To extend support to set per-radio attributes, add support to get radio
index from userspace. Add an NL attribute - NL80211_ATTR_WIPHY_RADIO_INDEX,
to get user specified radio index for which attributes should be changed.
Pass this to individual drivers, so that the drivers can use this radio
index to change per-radio attributes when necessary. Currently, per-radio
attributes identified are:
NL80211_ATTR_WIPHY_TX_POWER_LEVEL
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_TXQ_LIMIT
NL80211_ATTR_TXQ_MEMORY_LIMIT
NL80211_ATTR_TXQ_QUANTUM

By default, the radio index is set to -1. This means the attribute should
be treated as a global configuration. If the user has not specified any
index, then the radio index passed to individual drivers would be -1. This
would indicate that the attribute applies to all radios in that wiphy.

Signed-off-by: Roopni Devanathan <quic_rdevanat@quicinc.com>
Link: https://patch.msgid.link/20250615082312.619639-2-quic_rdevanat@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2025-06-24 15:19:27 +02:00
..
core.c
debugfs.c wifi: mt7601u: delete dead code checking debugfs returns 2023-05-05 15:03:09 +03:00
dma.c
dma.h move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
eeprom.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
eeprom.h
init.c
initvals_phy.h
initvals.h
Kconfig Fix nomenclature for USB and PCI wireless devices 2023-08-25 12:56:49 +03:00
mac.c
mac.h
main.c wifi: cfg80211/mac80211: Add support to get radio index 2025-06-24 15:19:27 +02:00
Makefile
mcu.c
mcu.h
mt7601u.h
phy.c
regs.h
trace.c
trace.h wifi: mt7601u: replace strlcpy() with strscpy() 2023-06-15 10:46:41 +03:00
tx.c wifi: mac80211: rename ieee80211_tx_status() to ieee80211_tx_status_skb() 2023-10-23 12:26:51 +02:00
usb.c net: fill in MODULE_DESCRIPTION()s in kuba@'s modules 2023-10-28 11:29:27 +01:00
usb.h
util.c