Message ID | 20250107182506.1838704-1-quic_ramess@quicinc.com |
---|---|
Headers | show |
Series | wifi: cfg80211/mac80211: Set/get wiphy parameters on per-radio basis | expand |
On 1/7/2025 10:25 AM, Rameshkumar Sundaram wrote: > 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. > > Note: > This is design proposal to extend support to set RTS threshold/tx power for > each radio and get the same from the userspace and hence sent as RFC. > If we agree on this design, all per-radio attributes supported in wiphy > can follow this design to modify attributes for a specific radio without > disturbing other radios in the wiphy. > > 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. > > An alternate design is to allow multiple radios to be configured with > different per-radio attributes in a single command. To achieve this, > a new nested attribute can be added to hold all per-radio attributes > for all the radios in multi-radio wiphy. The attributes and respective > values passed from userspace (say iw) can be parsed in NL80211 and for > each attribute, corresponding handlers can be called in iteration for > each radio. This design will require adding an attribute indicating index > of the radio along with the nested attribute to circle down the radio of > interest. Just pinging the community to see if there are any comments on this RFC, especially since there are two different designs proposed so some guidance on the preferred design would be appreciated. Should we post a [PATCH] of the first design where the core wireless portion is already implemented? /jeff