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 | mac80211: remove unused argument to ieee80211_sta_connection_lost() (diff) | |
download | linux-16d0364c722a246933ec4b39cbd5d17d7d4fe758.tar.xz linux-16d0364c722a246933ec4b39cbd5d17d7d4fe758.zip |
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 '')
-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 |