openwrt/package/network/services
Felix Fietkau a6969351a7 hostapd: clear start_disabled when adding a BSS to an enabled iface
In AP+STA mode, wifi-scripts emits start_disabled=1 in the per-BSS
section of the generated hostapd config so that hostapd defers
beaconing on every BSS until apsta_state up clears the flag for the
whole iface (uc_hostapd_iface_start clears start_disabled on every BSS
and calls ieee802_11_set_beacon).

When a new BSS is added later via iface.add_bss while the iface is
already in HAPD_IFACE_ENABLED state, the freshly parsed config still
carries start_disabled=1 for that BSS. hostapd_setup_bss is invoked
with start_beacon=true, but hostapd_start_beacon then skips
ieee802_11_set_beacon because conf->start_disabled is set. The kernel
netdev is created without ever starting beacons, the carrier never
comes up, and probe-response transmission attempts fail with
"handle_probe_req: send failed".

Mirror what iface.start does: when the iface is already enabled, the
apsta channel selection has happened, so clear start_disabled for the
incoming BSS before starting it.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-05-04 16:29:37 +02:00
..
bridger bridger: update to Git HEAD (2026-03-23) 2026-03-23 10:57:16 +01:00
dnsmasq dnsmasq: require busybox pidof applet 2026-04-29 10:09:20 +02:00
dropbear dropbear: require busybox pidof applet 2026-04-29 10:12:18 +02:00
ead treewide: switch to HTTPS URL 2026-01-02 18:07:02 +01:00
hostapd hostapd: clear start_disabled when adding a BSS to an enabled iface 2026-05-04 16:29:37 +02:00
ipset-dns treewide: switch to HTTPS URL 2026-01-02 18:07:02 +01:00
lldpd lldpd: bump to 1.0.20 2025-10-19 19:35:44 +02:00
odhcpd odhcpd: update to Git HEAD (2026-03-16) 2026-03-17 02:30:20 +01:00
omcproxy omcproxy: update to Git HEAD (2026-03-07) 2026-03-08 08:23:20 +01:00
ppp ppp: add memmove fortify and remove MRU patch 2026-03-07 00:04:48 +01:00
relayd relayd: update to Git HEAD (2025-10-04) 2025-10-04 13:38:44 +02:00
uhttpd uhttpd: update to Git HEAD (2025-10-03) 2025-10-03 23:57:30 +02:00
umdns umdns: update to Git HEAD (2026-02-06) 2026-03-12 20:32:25 +01:00
unetd unetd: update to Git HEAD (2026-02-15) 2026-02-15 14:42:03 +01:00
unetmsg unetmsg: notify subscribers when remote peer connection drops 2026-02-07 10:04:18 +01:00
ustp ustp: update to Git HEAD (2023-05-29) 2024-04-27 11:40:04 +02:00