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/offchannel.c | |
parent | f344c58c250d68c08e8b765a8c995a957ba28ced (diff) | |
download | linux-c8fe4b0b37f631284a447f4819231893ef4cbbaa.tar.gz linux-c8fe4b0b37f631284a447f4819231893ef4cbbaa.tar.bz2 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/offchannel.c')
-rw-r--r-- | net/mac80211/offchannel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/offchannel.c b/net/mac80211/offchannel.c index 853c9a369d72..c5d2ab9df1e7 100644 --- a/net/mac80211/offchannel.c +++ b/net/mac80211/offchannel.c @@ -819,7 +819,7 @@ int ieee80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, if (!sdata->u.mgd.associated || (params->offchan && params->wait && local->ops->remain_on_channel && - memcmp(sdata->u.mgd.associated->bssid, + memcmp(sdata->u.mgd.bssid, mgmt->bssid, ETH_ALEN))) need_offchan = true; sdata_unlock(sdata); |