]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
hostapd: ucode: fix setup of a BSS added at run time 24651/head
authorChad Monroe <chad@monroe.io>
Mon, 10 Aug 2026 10:18:09 +0000 (03:18 -0700)
committerNick Hainke <vincent@systemli.org>
Fri, 14 Aug 2026 22:16:30 +0000 (00:16 +0200)
The 2026-07-09 update changed the type of the first parameter of
hostapd_setup_bss() from int to bool. Before the update, add_bss
passed -1. The value -1 selected the setup path for a secondary BSS
and told hostapd to adopt an existing netdev. Converted to bool, -1
becomes true. As a result, hostapd does not do the setup of a
secondary BSS. The new BSS uses the driver state of the first BSS.

Pass false so the non-first block runs again. In this path,
use_existing is true, and hostapd adopts a netdev that already
exists.

Fixes: 345404476ac8 ("hostapd: update to 2026-07-09")
Signed-off-by: Chad Monroe <chad@monroe.io>
Link: https://github.com/openwrt/openwrt/pull/24651
Signed-off-by: Nick Hainke <vincent@systemli.org>
package/network/services/hostapd/Makefile
package/network/services/hostapd/src/src/ap/ucode.c

index e2cdc1096ff3fed1c8cb2e40d6a47b4766e21478..1d6fc3e2f85f9b82394435400d1f1c6e2e3d01ff 100644 (file)
@@ -5,7 +5,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=hostapd
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_URL:=https://w1.fi/hostap.git
 PKG_SOURCE_PROTO:=git
index 64653c6ae26eb8304b9ba5bca6cbc58025e9e2d9..85bf05bca6a76478b30580420446ab45bc9fa0c2 100644 (file)
@@ -470,7 +470,7 @@ uc_hostapd_iface_add_bss(uc_vm_t *vm, size_t nargs)
 
        if (iface->state == HAPD_IFACE_ENABLED) {
                hapd->conf->start_disabled = 0;
-               if (hostapd_setup_bss(hapd, -1, true))
+               if (hostapd_setup_bss(hapd, false, true))
                        goto deinit_ctrl;
        }