diff options
author | Felix Fietkau <nbd@nbd.name> | 2023-08-11 07:10:17 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2023-08-11 07:10:23 +0200 |
commit | 9c2c6d19f35708bb97462bb8902c54d2ec23001d (patch) | |
tree | 265d078863a3211f37d3f6ceb88f8171cefa7f9f | |
parent | d1427863bae1603eb3b8b385024f7ca11297503d (diff) |
hostapd: add missing #ifdef for non-802.11ax builds
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | package/network/services/hostapd/src/src/ap/ucode.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/network/services/hostapd/src/src/ap/ucode.c b/package/network/services/hostapd/src/src/ap/ucode.c index a41eee3fe5..fe99c3f667 100644 --- a/package/network/services/hostapd/src/src/ap/ucode.c +++ b/package/network/services/hostapd/src/src/ap/ucode.c @@ -332,16 +332,21 @@ uc_hostapd_iface_start(uc_vm_t *vm, size_t nargs) conf->channel = intval; if ((intval = ucv_int64_get(ucv_object_get(info, "sec_channel", NULL))) && !errno) conf->secondary_channel = intval; +#ifdef CONFIG_IEEE80211AC if ((intval = ucv_int64_get(ucv_object_get(info, "center_seg0_idx", NULL))) && !errno) { conf->vht_oper_centr_freq_seg0_idx = intval; +#ifdef CONFIG_IEEE80211AX conf->he_oper_centr_freq_seg0_idx = intval; +#endif #ifdef CONFIG_IEEE80211BE conf->eht_oper_centr_freq_seg0_idx = intval; #endif } if ((intval = ucv_int64_get(ucv_object_get(info, "center_seg1_idx", NULL))) && !errno) { conf->vht_oper_centr_freq_seg1_idx = intval; +#ifdef CONFIG_IEEE80211AX conf->he_oper_centr_freq_seg1_idx = intval; +#endif #ifdef CONFIG_IEEE80211BE conf->eht_oper_centr_freq_seg1_idx = intval; #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)); if (!errno) { conf->vht_oper_chwidth = intval; +#ifdef CONFIG_IEEE80211AX conf->he_oper_chwidth = intval; +#endif #ifdef CONFIG_IEEE80211BE conf->eht_oper_chwidth = intval; #endif } +#endif out: if (conf->channel) |