diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-05-13 15:48:05 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-05-16 09:13:22 +0200 |
commit | c8fe4b0b37f631284a447f4819231893ef4cbbaa (patch) | |
tree | f625e850fe4b062e148110bd5f63f3f9a5b605bf /net/mac80211/main.c | |
parent | mac80211: mlme: move in RSSI reporting code (diff) | |
download | linux-c8fe4b0b37f631284a447f4819231893ef4cbbaa.tar.xz linux-c8fe4b0b37f631284a447f4819231893ef4cbbaa.zip |
mac80211: use ifmgd->bssid instead of ifmgd->associated->bssid
Since we always track the BSSID there when we get associated,
these are equivalent, but ifmgd->bssid saves a dereference and
thus makes the code a bit smaller, and more readable.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index a48a32f87897..03f772c4ee42 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -287,7 +287,7 @@ static void ieee80211_restart_work(struct work_struct *work) if (sdata->vif.csa_active) { sdata_lock(sdata); ieee80211_sta_connection_lost(sdata, - sdata->u.mgd.associated->bssid, + sdata->u.mgd.bssid, WLAN_REASON_UNSPECIFIED, false); sdata_unlock(sdata); } |