linux-loongson/drivers/net/wireless/ath/wcn36xx
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
..
debug.c wifi: wcn36xx: Add debugfs entry to read firmware feature strings 2022-07-29 16:24:38 +03:00
debug.h wifi: wcn36xx: Add debugfs entry to read firmware feature strings 2022-07-29 16:24:38 +03:00
dxe.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
dxe.h wifi: wcn36xx: add support for pronto-v3 2023-03-15 12:15:50 +02:00
firmware.c wifi: wcn36xx: Move capability bitmap to string translation function to firmware.c 2022-07-29 16:24:38 +03:00
firmware.h wifi: wcn36xx: Move capability bitmap to string translation function to firmware.c 2022-07-29 16:24:38 +03:00
hal.h wifi: wcn36xx: fix repeated words in comments 2022-09-19 15:43:02 +03:00
Kconfig
main.c wifi: cfg80211/mac80211: Add support to get radio index 2025-06-24 15:19:27 +02:00
Makefile wifi: wcn36xx: Move firmware feature bit storage to dedicated firmware.c file 2022-07-29 16:24:38 +03:00
pmc.c
pmc.h
smd.c wifi: wcn36xx: remove unnecessary (void*) conversions 2023-09-21 11:08:22 +03:00
smd.h wifi: wcn36xx: Annotate struct wcn36xx_hal_ind_msg with __counted_by 2023-09-21 11:09:31 +03:00
testmode_i.h
testmode.c wifi: wcn36xx: Don't use %pK through printk 2025-04-17 15:49:35 -07:00
testmode.h
txrx.c wifi: wcn36xx: buff_to_be(): fix sparse warnings 2024-03-25 12:50:41 +02:00
txrx.h wcn36xx: Implement tx_rate reporting 2022-03-30 11:04:25 +03:00
wcn36xx.h wifi: wcn36xx: fix a typo in struct wcn36xx_sta documentation 2024-09-19 19:18:02 +03:00