Skip to content

Commit 041a74c

Browse files
ilanpeer2jmberg-intel
authored andcommitted
wifi: mac80211: Notify the low level driver on change in MLO valid links
Notify the low level driver when there is change in the valid links. Signed-off-by: Ilan Peer <[email protected]> Signed-off-by: Gregory Greenman <[email protected]> Link: https://lore.kernel.org/r/20230920211508.4fc85b0a51b0.I64238e0e892709a2bd4764b3bca93cdcf021e2fd@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent c9394c8 commit 041a74c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

include/net/mac80211.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ struct ieee80211_vif_chanctx_switch {
341341
* @BSS_CHANGED_UNSOL_BCAST_PROBE_RESP: Unsolicited broadcast probe response
342342
* status changed.
343343
* @BSS_CHANGED_EHT_PUNCTURING: The channel puncturing bitmap changed.
344+
* @BSS_CHANGED_MLD_VALID_LINKS: MLD valid links status changed.
344345
*/
345346
enum ieee80211_bss_change {
346347
BSS_CHANGED_ASSOC = 1<<0,
@@ -376,6 +377,7 @@ enum ieee80211_bss_change {
376377
BSS_CHANGED_FILS_DISCOVERY = 1<<30,
377378
BSS_CHANGED_UNSOL_BCAST_PROBE_RESP = 1<<31,
378379
BSS_CHANGED_EHT_PUNCTURING = BIT_ULL(32),
380+
BSS_CHANGED_MLD_VALID_LINKS = BIT_ULL(33),
379381

380382
/* when adding here, make sure to change ieee80211_reconfig */
381383
};

net/mac80211/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed)
207207
BSS_CHANGED_PS |\
208208
BSS_CHANGED_IBSS |\
209209
BSS_CHANGED_ARP_FILTER |\
210-
BSS_CHANGED_SSID)
210+
BSS_CHANGED_SSID |\
211+
BSS_CHANGED_MLD_VALID_LINKS)
211212

212213
void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata,
213214
u64 changed)

net/mac80211/mlme.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5713,6 +5713,8 @@ static void ieee80211_ml_reconf_work(struct wiphy *wiphy,
57135713
if (ret)
57145714
sdata_info(sdata, "Failed setting valid links\n");
57155715

5716+
ieee80211_vif_cfg_change_notify(sdata, BSS_CHANGED_MLD_VALID_LINKS);
5717+
57165718
out:
57175719
if (!ret)
57185720
cfg80211_links_removed(sdata->dev, sdata->u.mgd.removed_links);

0 commit comments

Comments
 (0)