Skip to content

Commit

Permalink
hostapd: add missing #ifdef to fix compile error when 802.11be suppor…
Browse files Browse the repository at this point in the history
…t is disabled

Fixes: d65d546 ("hostapd: add missing ctrl socket initialization on bss add")
Signed-off-by: Felix Fietkau <[email protected]>
(cherry picked from commit 46c17c2)
  • Loading branch information
nbd168 committed Mar 5, 2025
1 parent f0dbdf6 commit 5655927
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package/network/services/hostapd/src/src/ap/ucode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5655927

Please sign in to comment.