nl80211: Fix set_ap() to add frequency without CONFIG_IEEE80211AX
This call was added within a conditional CONFIG_IEEE80211AX block even
though this can apply without that build option. Move this outside that
conditional block.
Fixes: b3921db426
("nl80211: Add frequency info in start AP command")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
f2f0dd354f
commit
4200657338
1 changed files with 3 additions and 3 deletions
|
@ -5319,6 +5319,9 @@ static int wpa_driver_nl80211_set_ap(void *priv,
|
||||||
nla_nest_end(msg, ftm);
|
nla_nest_end(msg, ftm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (params->freq && nl80211_put_freq_params(msg, params->freq) < 0)
|
||||||
|
goto fail;
|
||||||
|
|
||||||
#ifdef CONFIG_IEEE80211AX
|
#ifdef CONFIG_IEEE80211AX
|
||||||
if (params->he_spr_ctrl) {
|
if (params->he_spr_ctrl) {
|
||||||
struct nlattr *spr;
|
struct nlattr *spr;
|
||||||
|
@ -5353,9 +5356,6 @@ static int wpa_driver_nl80211_set_ap(void *priv,
|
||||||
nla_nest_end(msg, spr);
|
nla_nest_end(msg, spr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params->freq && nl80211_put_freq_params(msg, params->freq) < 0)
|
|
||||||
goto fail;
|
|
||||||
|
|
||||||
if (params->freq && params->freq->he_enabled &&
|
if (params->freq && params->freq->he_enabled &&
|
||||||
nl80211_attr_supported(drv, NL80211_ATTR_HE_BSS_COLOR)) {
|
nl80211_attr_supported(drv, NL80211_ATTR_HE_BSS_COLOR)) {
|
||||||
struct nlattr *bss_color;
|
struct nlattr *bss_color;
|
||||||
|
|
Loading…
Reference in a new issue