wifi: mac80211: don't set link address for station
authorJohannes Berg <johannes.berg@intel.com>
Thu, 30 Jun 2022 12:20:54 +0000 (14:20 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:18 +0000 (11:43 +0200)
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>
net/mac80211/iface.c

index f29764936c99be4702367f2bf6e36d5ce9f92ad6..f4341f378d4ee01fab889c8d2c8f135d89a5ec61 100644 (file)
@@ -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);