[openwrt/openwrt] hostapd: fix dealing with required interface restart in AP+STA mode

LEDE Commits lede-commits at lists.infradead.org
Thu Feb 19 07:15:24 PST 2026


nbd pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/e2089a5d3ee7782c253c9a64787a7833b4856d0c

commit e2089a5d3ee7782c253c9a64787a7833b4856d0c
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sun Feb 1 19:17:27 2026 +0000

    hostapd: fix dealing with required interface restart in AP+STA mode
    
    Ensure that the BSS start_disabled option is always cleared, so that
    interfaces come up properly.
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
    (cherry picked from commit b7cd16dba3259279643705a6bbed21abe1330586)
---
 package/network/services/hostapd/src/src/ap/ucode.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/network/services/hostapd/src/src/ap/ucode.c b/package/network/services/hostapd/src/src/ap/ucode.c
index 435174ca51..3867a07218 100644
--- a/package/network/services/hostapd/src/src/ap/ucode.c
+++ b/package/network/services/hostapd/src/src/ap/ucode.c
@@ -671,6 +671,9 @@ out:
 	if (conf->channel && !iface->freq)
 		iface->freq = hostapd_hw_get_freq(iface->bss[0], conf->channel);
 
+	for (i = 0; i < iface->num_bss; i++)
+		iface->bss[i]->conf->start_disabled = 0;
+
 	if (iface->state != HAPD_IFACE_ENABLED) {
 		hostapd_enable_iface(iface);
 		return ucv_boolean_new(true);
@@ -680,7 +683,6 @@ out:
 		struct hostapd_data *hapd = iface->bss[i];
 		int ret;
 
-		hapd->conf->start_disabled = 0;
 		hostapd_set_freq(hapd, conf->hw_mode, iface->freq,
 				 conf->channel,
 				 conf->enable_edmg,




More information about the lede-commits mailing list