[RFC PATCH wireless] wifi: mt76: mt7925: get the survey airtime from the firmware
Chris
hoopyfrood42 at gmail.com
Fri Nov 13 09:44:54 PST 2026
On Fri, Nov 13, 2026 at 11:38 AM Devin Wittmayer
<lucid_duck at justthetip.ca> wrote:
>
> On Thu, Nov 12, 2026 at 11:30:19PM -0500, Chris wrote:
> > Just checking in on this one. Is a v2 still planned? I’ve been running
> > the RFC on a Netgear A9000 (MT7925U) since late October. Busy time now
> > follows the channel, and the readings look right.
>
> Yes, but it is on hold. With the A9000 at USB 2.0 the firmware is slow
> to answer the query during a download, the query times out and the
> chip gets reset. MediaTek's series for the same counters does it too.
> I wrote that up here:
>
> https://lore.kernel.org/linux-wireless/20261113150048.5271-1-lucid_duck@justthetip.ca/
>
> v2 has to get past that first.
>
> > As I mentioned in my last reply, I take the busy, rx and tx deltas in
> > 32 bits, since offset 19 wraps about every 72 minutes. Since then,
> > about one reading a day still comes out near 2^64, so roughly 2^32 µs
> > below the previous one, as if the counter stepped back. All but one
> > were on 2412 MHz. I haven’t dug into it, but it may be worth a look
> > before v2.
>
> v2 takes all three differences in 32 bits, the way you suggested. With
> a wrap forced early the RFC steps back by 2^32 us and v2 does not.
> After that change the totals can only go up, so is your once-a-day
> reading from the RFC as posted, or with the change in your driver?
>
> Thanks for keeping it running.
>
> Devin
On Fri, Nov 13, 2026, Devin Wittmayer wrote:
> After that change the totals can only go up, so is your once-a-day
> reading from the RFC as posted, or with the change in your driver?
With the change, as far as I can tell. The build with the 32-bit
differences was installed on Nov 5 and loaded at a reboot a few minutes
later, and that module is still the one running. From Nov 6 to Nov 8 it
still gave 14 of these readings, 10 on 2412 MHz and 4 on 5745 MHz. Each
was a busy total of about 2^64 - 2^32 us plus a few hundred ms, some of
them on a channel with under a second of active time. My tool logs only
the first one per channel per run, so 14 is a floor.
There have been none since midday on Nov 8, about five days of scanning
on the same module.
I agree a 32-bit difference shouldn't be able to do that, so something
else may be going on in my build. I'll keep watching and report back if
it shows up again.
On the USB 2.0 timeouts: the A9000 here is on USB 2.0 as well and has
run your RFC since Oct 23 with no 00030022 timeout. Nearly all of that
is monitor mode, though, with only short station sessions, never a long
download.
Chris
More information about the Linux-mediatek
mailing list