mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 21:54:11 +08:00
db3e1c40cf
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>
68 lines
1.1 KiB
Makefile
68 lines
1.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
obj-$(CONFIG_MAC80211) += mac80211.o
|
|
|
|
# mac80211 objects
|
|
mac80211-y := \
|
|
main.o status.o \
|
|
driver-ops.o \
|
|
sta_info.o \
|
|
wep.o \
|
|
aead_api.o \
|
|
wpa.o \
|
|
scan.o offchannel.o \
|
|
ht.o agg-tx.o agg-rx.o \
|
|
vht.o \
|
|
he.o \
|
|
ibss.o \
|
|
iface.o \
|
|
rate.o \
|
|
michael.o \
|
|
tkip.o \
|
|
aes_cmac.o \
|
|
aes_gmac.o \
|
|
fils_aead.o \
|
|
cfg.o \
|
|
ethtool.o \
|
|
rx.o \
|
|
spectmgmt.o \
|
|
tx.o \
|
|
key.o \
|
|
util.o \
|
|
wme.o \
|
|
chan.o \
|
|
trace.o mlme.o \
|
|
tdls.o \
|
|
ocb.o \
|
|
airtime.o
|
|
|
|
mac80211-$(CONFIG_MAC80211_LEDS) += led.o
|
|
mac80211-$(CONFIG_MAC80211_DEBUGFS) += \
|
|
debugfs.o \
|
|
debugfs_sta.o \
|
|
debugfs_netdev.o \
|
|
debugfs_key.o
|
|
|
|
mac80211-$(CONFIG_MAC80211_MESH) += \
|
|
mesh.o \
|
|
mesh_pathtbl.o \
|
|
mesh_plink.o \
|
|
mesh_hwmp.o \
|
|
mesh_sync.o \
|
|
mesh_ps.o
|
|
|
|
mac80211-$(CONFIG_PM) += pm.o
|
|
|
|
CFLAGS_trace.o := -I$(src)
|
|
|
|
rc80211_minstrel-y := \
|
|
rc80211_minstrel.o \
|
|
rc80211_minstrel_ht.o
|
|
|
|
rc80211_minstrel-$(CONFIG_MAC80211_DEBUGFS) += \
|
|
rc80211_minstrel_debugfs.o \
|
|
rc80211_minstrel_ht_debugfs.o
|
|
|
|
mac80211-$(CONFIG_MAC80211_RC_MINSTREL) += $(rc80211_minstrel-y)
|
|
|
|
ccflags-y += -DDEBUG
|