Unsolicited broadcast probe response tranmission is used for in-band discovery in 6GHz band (IEEE P802.11ax/D6.0 26.17.2.3.2, AP behavior for fast passive scanning). The new attribute, NL80211_ATTR_UNSOL_BCAST_PROBE_RESP, is nested which supports following parameters: (1) NL80211_UNSOL_BCAST_PROBE_RESP_INT - Packet interval (2) NL80211_UNSOL_BCAST_PROBE_RESP_TMPL - Template data Signed-off-by: Aloka Dixit <alokad@xxxxxxxxxxxxxx> --- src/drivers/driver_nl80211.c | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 72189da240dd..4b93ee0f05ef 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -4222,6 +4222,40 @@ static int nl80211_set_multicast_to_unicast(struct i802_bss *bss, return ret; } +#ifdef CONFIG_IEEE80211AX +static int nl80211_unsol_bcast_probe_resp(struct i802_bss *bss, + struct nl_msg *msg, + struct wpa_driver_ap_params *params) +{ + struct wpa_driver_nl80211_data *drv = bss->drv; + struct nlattr *attr; + + attr = nla_nest_start(msg, NL80211_ATTR_UNSOL_BCAST_PROBE_RESP); + if (!attr) + return -1; + + if (nla_put_u32(msg, NL80211_UNSOL_BCAST_PROBE_RESP_INT, + params->unsol_bcast_probe_resp_interval)) { + wpa_printf(MSG_ERROR, + "nl80211: Failed to build unsolicited broadcast probe response msg for %s\n", + bss->ifname); + return -1; + } + + if (params->unsol_bcast_probe_resp_tmpl && + nla_put(msg, NL80211_UNSOL_BCAST_PROBE_RESP_TMPL, + params->unsol_bcast_probe_resp_tmpl_len, + params->unsol_bcast_probe_resp_tmpl)) { + wpa_printf(MSG_ERROR, + "nl80211: Failed to build unsolicited broadcast probe response msg for %s\n", + bss->ifname); + return -1; + } + + nla_nest_end(msg, attr); + return 0; +} +#endif /* CONFIG_IEEE80211AX */ static int wpa_driver_nl80211_set_ap(void *priv, struct wpa_driver_ap_params *params) @@ -4481,6 +4515,10 @@ static int wpa_driver_nl80211_set_ap(void *priv, if (nla_put_flag(msg, NL80211_ATTR_TWT_RESPONDER)) goto fail; } + + ret = nl80211_unsol_bcast_probe_resp(bss, msg, params); + if (ret < 0) + goto fail; #endif /* CONFIG_IEEE80211AX */ ret = send_and_recv_msgs_owner(drv, msg, get_connect_handle(bss), 1, -- 2.25.0 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap