]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: mlme: assign link address correctly
authorJohannes Berg <johannes.berg@intel.com>
Fri, 2 Sep 2022 14:12:38 +0000 (16:12 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Sat, 3 Sep 2022 15:02:34 +0000 (17:02 +0200)
commit6448c93bddecc8ba4c4993c31948bcc8b0276a7e
tree7ac6837ed5a6013714346ffaedc8cd55b1b00753
parent1a1237f3be37f22a8812591cb3ea0aed2279106a
wifi: mac80211: mlme: assign link address correctly

Right now, we assign the link address only after we add
the link to the driver, which is quite obviously wrong.
It happens to work in many cases because it gets updated
immediately, and then link_conf updates may update it,
but it's clearly not really right.

Set the link address during ieee80211_mgd_setup_link()
so it's set before telling the driver about the link.

Fixes: ab36dd033db8 ("wifi: mac80211: support MLO authentication/association with one link")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c