HE: Send the AP's OBSS PD settings to the kernel
This allows us to send the OBSS PD settings to the kernel, such that the driver can propagate them to the hardware/firmware. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
262b71eead
commit
a84bf44388
3 changed files with 39 additions and 0 deletions
|
@ -4282,6 +4282,23 @@ static int wpa_driver_nl80211_set_ap(void *priv,
|
|||
nla_nest_end(msg, ftm);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_IEEE80211AX
|
||||
if (params->he_spr) {
|
||||
struct nlattr *spr;
|
||||
|
||||
spr = nla_nest_start(msg, NL80211_ATTR_HE_OBSS_PD);
|
||||
wpa_printf(MSG_DEBUG, "nl80211: he_spr=%d", params->he_spr);
|
||||
|
||||
if (nla_put_u8(msg, NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET,
|
||||
params->he_spr_srg_obss_pd_min_offset) ||
|
||||
nla_put_u8(msg, NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET,
|
||||
params->he_spr_srg_obss_pd_max_offset))
|
||||
goto fail;
|
||||
|
||||
nla_nest_end(msg, spr);
|
||||
}
|
||||
#endif /* CONFIG_IEEE80211AX */
|
||||
|
||||
ret = send_and_recv_msgs(drv, msg, NULL, NULL);
|
||||
if (ret) {
|
||||
wpa_printf(MSG_DEBUG, "nl80211: Beacon set failed: %d (%s)",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue