On Mon, 2019-11-18 at 22:06 -0800, Kan Yan wrote: > From: Toke Høiland-Jørgensen <toke@xxxxxxxxxx> > > Felix recently added code to calculate airtime of packets to the mt76 > driver. Import this into mac80211 so we can use it for airtime queue limit > calculations. > > The airtime.c file is copied verbatim from the mt76 driver, and adjusted to > be usable in mac80211. This involves: > > - Switching to mac80211 data structures. > - Adding support for 160 MHz channels and HE mode. > - Moving the symbol and duration calculations around a bit to avoid > rounding with the higher rates and longer symbol times used for HE rates. :) I'll apply this, I guess, but I do wonder to what extent it overlaps with cfg80211_calculate_bitrate()? johannes