wifi: mac80211: fix link sta hash table handling
authorJohannes Berg <johannes.berg@intel.com>
Mon, 18 Jul 2022 20:54:27 +0000 (22:54 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 22 Jul 2022 12:28:10 +0000 (14:28 +0200)
commit0ad49045f28474b3cbc1f27ec7a4238970734764
treec027d03e9311afc65c4e0de2f773c9c5533b51bc
parent9aebce6c97bfd7dafd364be2e5b3af7a78af2662
wifi: mac80211: fix link sta hash table handling

There are two issues here: we unhash the link stations only
directly before freeing the station they belong to, and we
also don't unhash all the links correctly in all cases. Fix
these issues.

Fixes: ba6ddab94fc6 ("wifi: mac80211: maintain link-sta hash table")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c