]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
hostapd: add missing #ifdef to fix compile error when 802.11be support is disabled
authorFelix Fietkau <nbd@nbd.name>
Wed, 5 Mar 2025 08:19:12 +0000 (09:19 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 5 Mar 2025 08:20:06 +0000 (09:20 +0100)
Fixes: d65d546bce36 ("hostapd: add missing ctrl socket initialization on bss add")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 46c17c22cd9cdccbdb0f1eeddb3f087ff8d9486f)

package/network/services/hostapd/src/src/ap/ucode.c

index aa273c12cf6fc4f4341a17c4bc8ebe142218eeba..b13c0ff77c7fe09afacc78498e82c763303d8f4b 100644 (file)
@@ -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;