]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: cfg80211: Add parameters to radio-specific debugfs directories
authorRoopni Devanathan <quic_rdevanat@quicinc.com>
Fri, 24 Oct 2025 04:46:49 +0000 (10:16 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 27 Oct 2025 08:18:41 +0000 (09:18 +0100)
commit88de08348af8ce15dc563e0ebb5553eddd821c06
treecab84414ad049facaa378366dc53c6186758d8d1
parent7cc986c04a9b07d91684f7e326fa5b960215bc97
wifi: cfg80211: Add parameters to radio-specific debugfs directories

In multi-radio wiphy architecture, where a single wiphy can have
multiple radios tied to it, radio specific configuration parameters
and global wiphy parameters are maintained for the entire physical
device and common to all radios. But, each radio in a wiphy can
have different values for each radio configuration parameter like
RTS threshold. With the current debugfs directory structure, the
values of global wiphy configuration parameters can be viewed, but,
values of individual radio configuration parameters cannot be viewed.

To address this requirement, maintain separate entries of each radio
configuration parameter i.e., RTS threshold in corresponding radio-
specific debugfs directory. This way, radio-specific configuration
parameters can be maintained along with global wiphy configuration
parameters. Whenever the values are changed for one radio, the values
for rest of the radios in the wiphy and the global wiphy parameter
value will remain intact.

Sample output:
/# iw phy#0 set rts 100 radio 1
/# iw phy#0 set rts 468 radio 0
/# cat /sys/kernel/debug/ieee80211/phy0/rts_threshold
-1
/# cat /sys/kernel/debug/ieee80211/phy0/radio0/radio_rts_threshold
468
/# cat /sys/kernel/debug/ieee80211/phy0/radio1/radio_rts_threshold
100

/# iw phy#0 set rts 500
/# cat /sys/kernel/debug/ieee80211/phy0/rts_threshold
500
/# cat /sys/kernel/debug/ieee80211/phy0/radio0/radio_rts_threshold
500
/# cat /sys/kernel/debug/ieee80211/phy0/radio1/radio_rts_threshold
500

Signed-off-by: Roopni Devanathan <quic_rdevanat@quicinc.com>
Link: https://patch.msgid.link/20251024044649.483557-3-quic_rdevanat@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/debugfs.c