]> git.baikalelectronics.ru Git - kernel.git/commitdiff
wifi: mac80211: set link BSSID
authorShaul Triebitz <shaul.triebitz@intel.com>
Thu, 4 Aug 2022 13:50:18 +0000 (16:50 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 25 Aug 2022 08:40:54 +0000 (10:40 +0200)
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>
net/mac80211/iface.c

index 95b58c5cac07f48b7b140ca678636e320d1b6961..3c30e1219861d81c612e726f4e6b09ac033fadd5 100644 (file)
@@ -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);