wifi: mac80211_hwsim: track active STA links
authorJohannes Berg <johannes.berg@intel.com>
Fri, 2 Sep 2022 14:12:45 +0000 (16:12 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 6 Sep 2022 08:14:01 +0000 (10:14 +0200)
commite229f978293ef83b7412189610117ee9ac18a3ab
treeb5558ae842b1d7bcff332bcc3fdec5fe8ab9b4fd
parent6521ee74636d11cc895ccc2ba845de7969a30221
wifi: mac80211_hwsim: track active STA links

Track the powersave bit on frames where we can look up
the STA by link addresses and set the links active or
inactive accordingly, and use this information to TX
only on links that are actually active in the peer.

Note that this doesn't implement powersave fully so
if no link is active things will not work right.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c