diff options
| author | Felix Fietkau | 2025-03-05 08:19:12 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-03-05 08:20:06 +0000 |
| commit | 56559278b78900f6cae5fda6b8d1bb9cda41e8bf (patch) | |
| tree | bb6e99e6cdd8fc5b51dc642d23d9c39e559f7c20 | |
| parent | f0dbdf6b7fdf2c3ced067b62e678dccdb32cbab7 (diff) | |
| download | openwrt-56559278b78900f6cae5fda6b8d1bb9cda41e8bf.tar.gz | |
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@nbd.name>
(cherry picked from commit 46c17c22cd9cdccbdb0f1eeddb3f087ff8d9486f)
| -rw-r--r-- | package/network/services/hostapd/src/src/ap/ucode.c | 2 |
1 files changed, 2 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 aa273c12cf..b13c0ff77c 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; |