diff options
author | Toke Høiland-Jørgensen <toke@redhat.com> | 2019-11-19 09:06:08 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-11-22 15:36:25 +0300 |
commit | db3e1c40cf2f973fbdd52ae0b59a9472b1c04f4a (patch) | |
tree | 31588dcb7a472dee404037552487ea1cbe3f9017 /net/mac80211/fils_aead.h | |
parent | bc71d8b580ba81b55b6e15b1c0320632515b4bac (diff) | |
download | linux-db3e1c40cf2f973fbdd52ae0b59a9472b1c04f4a.tar.xz |
mac80211: Import airtime calculation code from mt76
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.
The per-rate TX rate calculation is also split out to its own function so
it can be used directly for the AQL calculations later.
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/r/20191119060610.76681-3-kyan@google.com
[fix HE_GROUP_IDX() to use 3 * bw, since there are 3 _gi values]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/fils_aead.h')
0 files changed, 0 insertions, 0 deletions