linux/drivers/net/wireless/ath/carl9170
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
..
carl9170.h
cmd.c wifi: carl9170: Fix multiple -Warray-bounds warnings 2023-03-24 16:53:23 +02:00
cmd.h
debug.c carl9170: stop embedding file_operations into their objects 2025-01-15 13:14:36 +01:00
debug.h
eeprom.h
fw.c gcc-15: add '__nonstring' markers to byte arrays 2025-04-20 11:57:54 -07:00
fwcmd.h wifi: carl9170: Replace fake flex-array with flexible-array member 2023-03-24 16:54:01 +02:00
fwdesc.h
hw.h
Kconfig
led.c
mac.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
main.c wifi: cfg80211/mac80211: Add support to get radio index 2025-06-24 15:19:27 +02:00
Makefile wifi: carl9170: Remove -Warray-bounds exception 2022-10-12 09:36:38 +03:00
phy.c
phy.h
rx.c
tx.c wifi: carl9170: micro-optimize carl9170_tx_shift_bm() 2025-05-20 18:08:38 -07:00
usb.c wifi: carl9170: do not ping device which has failed to load firmware 2025-06-17 16:28:35 -07:00
version.h
wlan.h carl9170: Replace zero-length array with DECLARE_FLEX_ARRAY() helper 2022-09-30 09:31:32 +03:00