summaryrefslogtreecommitdiffstats
path: root/net/wireless/trace.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-06-27 16:19:18 +0200
committerJohannes Berg <johannes.berg@intel.com>2022-07-15 11:43:16 +0200
commit8f6e0dfc2245d8ca1a3335a06a1219c56df04bb8 (patch)
tree7d11c72e2c13dd7a3f24577554262e67cfcda36c /net/wireless/trace.h
parentwifi: mac80211: mlme: use correct link_sta (diff)
downloadlinux-8f6e0dfc2245d8ca1a3335a06a1219c56df04bb8.tar.xz
linux-8f6e0dfc2245d8ca1a3335a06a1219c56df04bb8.zip
wifi: cfg80211: remove BSS pointer from cfg80211_disassoc_request
The race described by the comment in mac80211 hasn't existed since the locking rework to use the same lock and for MLO we need to pass the AP MLD address, so just pass the BSSID or AP MLD address instead of the BSS struct pointer, and adjust all the code accordingly. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/trace.h')
-rw-r--r--net/wireless/trace.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/wireless/trace.h b/net/wireless/trace.h
index c50e8a04199e..4316d3dc31ea 100644
--- a/net/wireless/trace.h
+++ b/net/wireless/trace.h
@@ -1318,10 +1318,7 @@ TRACE_EVENT(rdev_disassoc,
TP_fast_assign(
WIPHY_ASSIGN;
NETDEV_ASSIGN;
- if (req->bss)
- MAC_ASSIGN(bssid, req->bss->bssid);
- else
- eth_zero_addr(__entry->bssid);
+ MAC_ASSIGN(bssid, req->ap_addr);
__entry->reason_code = req->reason_code;
__entry->local_state_change = req->local_state_change;
),