diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-05-13 17:46:24 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-05-16 09:15:19 +0200 |
commit | 16d0364c722a246933ec4b39cbd5d17d7d4fe758 (patch) | |
tree | e357cf8649b67c5fd73eae4889ef154f4adc573d /net/mac80211/mlme.c | |
parent | 53da4c45cadee45c1c902d58556cc0d488878e16 (diff) |
mac80211: remove useless bssid copy
We don't need to copy this locally, we now only use the
variable to print before doing other things.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 116d7c524a44..c45eebce72f0 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -4734,11 +4734,9 @@ void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata) if (ifmgd->flags & IEEE80211_STA_CONNECTION_POLL && ifmgd->associated) { - u8 bssid[ETH_ALEN]; + u8 *bssid = ifmgd->bssid; int max_tries; - memcpy(bssid, ifmgd->bssid, ETH_ALEN); - if (ieee80211_hw_check(&local->hw, REPORTS_TX_ACK_STATUS)) max_tries = max_nullfunc_tries; else |