• Johannes Berg's avatar
    wifi: mac80211: mlme: assign link address correctly · acdc3e47
    Johannes Berg authored
    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: 81151ce4 ("wifi: mac80211: support MLO authentication/association with one link")
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    acdc3e47
mlme.c 213 KB