mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 07:31:45 +00:00
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>
This commit is contained in:
parent
53da4c45ca
commit
16d0364c72
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user