Commit 48345659 authored by Johannes Berg's avatar Johannes Berg

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 38c6aa29
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment