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

Johannes Berg johannes at sipsolutions.net
Fri Nov 22 07:12:37 EST 2019


On Mon, 2019-11-18 at 22:06 -0800, Kan Yan wrote:
> From: Toke Høiland-Jørgensen <toke at redhat.com>
> 
> 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



More information about the Make-wifi-fast mailing list