summaryrefslogtreecommitdiff
path: root/net/mac80211/iface.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-06-30 15:20:54 +0300
committerJohannes Berg <johannes.berg@intel.com>2022-07-15 12:43:18 +0300
commit483456590adee7b97b201c6c5880095be14e1fd9 (patch)
treef5a8de026f50d1ee91c9b81f15a06b3ee95b84c9 /net/mac80211/iface.c
parent38c6aa29d4558c55a1d2b4010cc588716e212f89 (diff)
downloadlinux-483456590adee7b97b201c6c5880095be14e1fd9.tar.xz
wifi: mac80211: don't set link address for station
We need to handle the link addresses for station differently, they will be determined by the association code, stored, and then applied when the links are actually created on success, cfg80211 will fill in the right addresses per the data we're sending back to it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r--net/mac80211/iface.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index f29764936c99..f4341f378d4e 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -409,9 +409,6 @@ static void ieee80211_link_init(struct ieee80211_sub_if_data *sdata,
WARN_ON(!(sdata->wdev.valid_links & BIT(link_id)));
break;
case NL80211_IFTYPE_STATION:
- eth_random_addr(link_conf->addr);
- ether_addr_copy(sdata->wdev.links[link_id].addr,
- link_conf->addr);
break;
default:
WARN_ON(1);