projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53da4c4
)
mac80211: remove useless bssid copy
author
Johannes Berg
<johannes.berg@intel.com>
Fri, 13 May 2022 15:46:24 +0000
(17:46 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Mon, 16 May 2022 07:15:19 +0000
(09:15 +0200)
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>
net/mac80211/mlme.c
patch
|
blob
|
history
diff --git
a/net/mac80211/mlme.c
b/net/mac80211/mlme.c
index 116d7c524a44f4a324fe6c2c5b20dd48460ca6fc..c45eebce72f062ca5b8317b7851fc7e6fa7dc153 100644
(file)
--- 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