diff options
author | Shaul Triebitz | 2022-08-04 16:50:18 +0300 |
---|---|---|
committer | Johannes Berg | 2022-08-25 10:40:54 +0200 |
commit | d1efad17381bada239a604bec1008572a2607316 (patch) | |
tree | 2d0c98a750ba188a986f514e4f7ebd88ccaf0147 /net | |
parent | bc1857619cc7612117d2ee1ed05b5bfeb638614b (diff) |
wifi: mac80211: set link BSSID
For an AP interface, set the link BSSID when the link
is initialized.
Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/iface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 95b58c5cac07..3c30e1219861 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -406,9 +406,11 @@ static void ieee80211_link_init(struct ieee80211_sub_if_data *sdata, case NL80211_IFTYPE_AP: ether_addr_copy(link_conf->addr, sdata->wdev.links[link_id].addr); + link_conf->bssid = link_conf->addr; WARN_ON(!(sdata->wdev.valid_links & BIT(link_id))); break; case NL80211_IFTYPE_STATION: + /* station sets the bssid in ieee80211_mgd_setup_link */ break; default: WARN_ON(1); |