[openwrt/openwrt] hostapd: add missing #ifdef to fix compile error when 802.11be support is disabled
LEDE Commits
lede-commits at lists.infradead.org
Wed Mar 5 00:19:50 PST 2025
nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/46c17c22cd9cdccbdb0f1eeddb3f087ff8d9486f
commit 46c17c22cd9cdccbdb0f1eeddb3f087ff8d9486f
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Wed Mar 5 09:19:12 2025 +0100
hostapd: add missing #ifdef to fix compile error when 802.11be support is disabled
Fixes: d65d546bce36 ("hostapd: add missing ctrl socket initialization on bss add")
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
package/network/services/hostapd/src/src/ap/ucode.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/network/services/hostapd/src/src/ap/ucode.c b/package/network/services/hostapd/src/src/ap/ucode.c
index 7b1040e47c..393e8f86c7 100644
--- a/package/network/services/hostapd/src/src/ap/ucode.c
+++ b/package/network/services/hostapd/src/src/ap/ucode.c
@@ -362,8 +362,10 @@ uc_hostapd_iface_add_bss(uc_vm_t *vm, size_t nargs)
hapd->driver = iface->bss[0]->driver;
hapd->drv_priv = iface->bss[0]->drv_priv;
+#ifdef CONFIG_IEEE80211BE
os_strlcpy(hapd->ctrl_sock_iface, hapd->conf->iface,
sizeof(hapd->ctrl_sock_iface));
+#endif
if (interfaces->ctrl_iface_init &&
interfaces->ctrl_iface_init(hapd) < 0)
goto free_hapd;
More information about the lede-commits
mailing list