Skip to content

Commit f7130c9

Browse files
Yuvarani Vjmberg-intel
authored andcommitted
wifi: mac80211: parse unsolicited broadcast probe response data
During commands like channel switch and color change, the updated unsolicited broadcast probe response template may be provided. However, this data is not parsed or acted upon in mac80211. Add support to parse it and set the BSS changed flag BSS_CHANGED_UNSOL_BCAST_PROBE_RESP so that drivers could take further action. Signed-off-by: Yuvarani V <[email protected]> Signed-off-by: Aditya Kumar Singh <[email protected]> Link: https://patch.msgid.link/20250710-update_unsol_bcast_probe_resp-v2-2-31aca39d3b30@oss.qualcomm.com Signed-off-by: Johannes Berg <[email protected]>
1 parent c932be7 commit f7130c9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

net/mac80211/cfg.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4187,6 +4187,12 @@ __ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev,
41874187
goto out;
41884188
}
41894189

4190+
err = ieee80211_set_unsol_bcast_probe_resp(sdata,
4191+
&params->unsol_bcast_probe_resp,
4192+
link_data, link_conf, &changed);
4193+
if (err)
4194+
goto out;
4195+
41904196
chanctx = container_of(conf, struct ieee80211_chanctx, conf);
41914197

41924198
ch_switch.timestamp = 0;
@@ -5128,6 +5134,12 @@ ieee80211_color_change(struct wiphy *wiphy, struct net_device *dev,
51285134
goto out;
51295135
}
51305136

5137+
err = ieee80211_set_unsol_bcast_probe_resp(sdata,
5138+
&params->unsol_bcast_probe_resp,
5139+
link, link_conf, &changed);
5140+
if (err)
5141+
goto out;
5142+
51315143
err = ieee80211_set_color_change_beacon(link, params, &changed);
51325144
if (err)
51335145
goto out;

0 commit comments

Comments
 (0)