diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-09-02 17:12:35 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-09-03 18:02:05 +0300 |
commit | b2c4aa35ebcc5c7e941a46e7b5c07587bd01b4e2 (patch) | |
tree | 9f5a9c532ad469c4288390608e75e291ce7c3e76 /drivers | |
parent | 774e00c20c4cb16c0edaafcf3e863a41092158d7 (diff) | |
download | linux-b2c4aa35ebcc5c7e941a46e7b5c07587bd01b4e2.tar.xz |
wifi: mac80211_hwsim: check STA magic in change_sta_links
Just as an additional check that mac80211 isn't doing
anything strange, add a check of the STA magic (which
gets assigned when the station is added, and cleared
when the station is removed).
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 87176b205fc1..48b1c39c1c05 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -3021,6 +3021,8 @@ static int mac80211_hwsim_change_sta_links(struct ieee80211_hw *hw, struct ieee80211_sta *sta, u16 old_links, u16 new_links) { + hwsim_check_sta_magic(sta); + return 0; } |