[Make-wifi-fast] [PATCH v11 2/4] mac80211: Import airtime calculation code from mt76

Toke Høiland-Jørgensen toke at redhat.com
Fri Nov 22 09:41:38 EST 2019


Johannes Berg <johannes at sipsolutions.net> writes:

> On Fri, 2019-11-22 at 14:11 +0100, Toke Høiland-Jørgensen wrote:
>> 
>> as in bitrate = 1/airtime? Dunno, maybe? How important is precision to
>> the bitrate calculations?
>
> Not *that* important, it's just sort of advisory for userspace.
>
> Though I think there's at least one place in mac80211 related to
> radiotap that actually does use it for airtime calculation, which should
> probably be changed to the new code now ...

Yeah, I guess so. The ath9k driver is also doing software calculations
for RX, so that could also be converted; and mt76 should be, of course...

>> > Or maybe we should keep both and use them as a sanity check for each
>> > other :P
>> 
>> Hmm, yeah, it should be possible to write a selftest to iterate through
>> all rates and compare the output of each calculation, shouldn't it?
>> Where would be a good place to put that?
>
> No idea ... make a new kselftest thing for wireless?

Right; was just wondering if there was something like that already which
I didn't know about :)

-Toke



More information about the Make-wifi-fast mailing list