hostapd: add missing #ifdef for non-802.11ax builds
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
d1427863ba
commit
9c2c6d19f3
1 changed files with 8 additions and 0 deletions
|
@ -332,16 +332,21 @@ uc_hostapd_iface_start(uc_vm_t *vm, size_t nargs)
|
||||||
conf->channel = intval;
|
conf->channel = intval;
|
||||||
if ((intval = ucv_int64_get(ucv_object_get(info, "sec_channel", NULL))) && !errno)
|
if ((intval = ucv_int64_get(ucv_object_get(info, "sec_channel", NULL))) && !errno)
|
||||||
conf->secondary_channel = intval;
|
conf->secondary_channel = intval;
|
||||||
|
#ifdef CONFIG_IEEE80211AC
|
||||||
if ((intval = ucv_int64_get(ucv_object_get(info, "center_seg0_idx", NULL))) && !errno) {
|
if ((intval = ucv_int64_get(ucv_object_get(info, "center_seg0_idx", NULL))) && !errno) {
|
||||||
conf->vht_oper_centr_freq_seg0_idx = intval;
|
conf->vht_oper_centr_freq_seg0_idx = intval;
|
||||||
|
#ifdef CONFIG_IEEE80211AX
|
||||||
conf->he_oper_centr_freq_seg0_idx = intval;
|
conf->he_oper_centr_freq_seg0_idx = intval;
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_IEEE80211BE
|
#ifdef CONFIG_IEEE80211BE
|
||||||
conf->eht_oper_centr_freq_seg0_idx = intval;
|
conf->eht_oper_centr_freq_seg0_idx = intval;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if ((intval = ucv_int64_get(ucv_object_get(info, "center_seg1_idx", NULL))) && !errno) {
|
if ((intval = ucv_int64_get(ucv_object_get(info, "center_seg1_idx", NULL))) && !errno) {
|
||||||
conf->vht_oper_centr_freq_seg1_idx = intval;
|
conf->vht_oper_centr_freq_seg1_idx = intval;
|
||||||
|
#ifdef CONFIG_IEEE80211AX
|
||||||
conf->he_oper_centr_freq_seg1_idx = intval;
|
conf->he_oper_centr_freq_seg1_idx = intval;
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_IEEE80211BE
|
#ifdef CONFIG_IEEE80211BE
|
||||||
conf->eht_oper_centr_freq_seg1_idx = intval;
|
conf->eht_oper_centr_freq_seg1_idx = intval;
|
||||||
#endif
|
#endif
|
||||||
|
@ -349,11 +354,14 @@ uc_hostapd_iface_start(uc_vm_t *vm, size_t nargs)
|
||||||
intval = ucv_int64_get(ucv_object_get(info, "oper_chwidth", NULL));
|
intval = ucv_int64_get(ucv_object_get(info, "oper_chwidth", NULL));
|
||||||
if (!errno) {
|
if (!errno) {
|
||||||
conf->vht_oper_chwidth = intval;
|
conf->vht_oper_chwidth = intval;
|
||||||
|
#ifdef CONFIG_IEEE80211AX
|
||||||
conf->he_oper_chwidth = intval;
|
conf->he_oper_chwidth = intval;
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_IEEE80211BE
|
#ifdef CONFIG_IEEE80211BE
|
||||||
conf->eht_oper_chwidth = intval;
|
conf->eht_oper_chwidth = intval;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
out:
|
out:
|
||||||
if (conf->channel)
|
if (conf->channel)
|
||||||
|
|
Loading…
Reference in a new issue