wifi: mac80211_hwsim: fix TX link selection
authorJohannes Berg <johannes.berg@intel.com>
Thu, 14 Jul 2022 19:58:00 +0000 (21:58 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:24 +0000 (11:43 +0200)
commitaf4f2aa35a4429f75e87c876e05fba84920a152e
tree639cf1b9017a6a3d51869310b43f1ed1bdd5aa1b
parent2ab60f49eb4d87998be602ca09c0e88b0808142b
wifi: mac80211_hwsim: fix TX link selection

Now that we have a pointer to the TX STA even when it's
not authenticated/... yet, fix the TX link selection in
hwsim to select only among the valid links for the STA,
requiring a STA pointer here. Also implement a simple
round-robin between links to make life more interesting.

While at it, also consider A3 when translating to link
addresses.

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