]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: status: look up band only where needed
authorJohannes Berg <johannes.berg@intel.com>
Wed, 1 Jun 2022 12:16:00 +0000 (14:16 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Jun 2022 10:55:38 +0000 (12:55 +0200)
commit15601e93a1482c821f7b967c228678b6a48eb604
tree27999aa42efc69dfc8860d4cbb21d8fddcc24f6f
parent4dd34fcdc230c83c37ac31820435fba68d989a11
wifi: mac80211: status: look up band only where needed

For MLD, we might eventually not really know the band on status,
but some code assumes it's there. Move the sband lookup deep to
the code that actually needs it, to make it clear where exactly
it's needed and for what purposes.

For rate control, at least initially we won't support it in MLO,
so that won't be an issue.

For TX monitoring, we may have to elide the rate and/or rely on
ieee80211_tx_status_ext() for rate information.

This also simplifies the function prototypes.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/rate.c
net/mac80211/rate.h
net/mac80211/status.c
net/mac80211/tx.c