> On 28. Feb 2023, at 18:41, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > > On Thu, 2023-01-26 at 15:26 +0100, Jonas Jelonek wrote: >>> >>> However, I think that for new parameters, there's really no good >>> reason >>> to provide module parameters, since the test scripting etc. can >>> dynamically create wiphys with the necessary capabilities. Even the >>> hostap/hwsim tests can and do already do that :) >> >> From what I’ve seen there is no dynamic parameter for RCTBL yet but I >> can combine >> this with my additional TPC parameter. Then this can be set via >> netlink. > > Fair enough, but yeah, I think we should move to that. > >>> We already have netlink support for setting per-station TX power >>> which I guess this should then listen to? See >>> NL80211_ATTR_STA_TX_POWER_SETTING >>> and NL80211_ATTR_STA_TX_POWER etc. I think it's not supported in >>> mac80211, but probably could easily be after your patches? >> >> I guess that can be part of some follow-up patches after these patches >> here are upstream. >> I would agree that this should somehow listen to the mentioned >> attributes then. > > OK. > >> We want to do joint RC and TPC in minstrel, and to allow fine-grained >> TPC as it is already possible with RC. Minstrel will also be adjusted in >> one of the next steps. >> This RFC basically should “prepare” mac80211 to be used for fine- >> grained TPC. I think, driver support and Minstrel support should be the >> next steps after the structures are fixed. >> But I include hwsim here to have at least a test-case. Hope you get >> what I mean :) > > Yep, seems good. > > I'm slightly worried we'll add this and never get to do the minstrel > part, but hey. This is also part of our research so we are going to either implement TPC in minstrel or export this to user space. Our research also includes looking at doing RC + TPC in user space with more advanced algorithms. > Also, most modern devices no longer even use minstrel, so is it even > worth doing at all from that perspective? What's in it for the users > who've been using their devices for years (since newer devices in the > past few years haven't used it, I think) without it? > > johannes Our goal and hope is that, we explore that and then can show some benefits of more advanced RC and TPC algorithm, so vendors like Atheros and Mediatek may again expose the MRR capabilities to the mac80211 layer with future chips. Afaik, the last Mediatek chips supporting mrr rate setting are mt76xx, which I guess are still pretty common, so we are doing our work on still relevant hardware. After having a short look at the driver code, it seems like more recent chips (in particular Mediatek) at least kept support for controlling the TX power per packet. I am not sure if it could be a good idea to split that up, not having TX power in the RC table but somehow separate. Then you would be able to do TPC without RC. Jonas