]> git.ipfire.org Git - thirdparty/openwrt.git/commit
wifi-scripts: fix race in wireless interface creation
authorNick Hainke <vincent@systemli.org>
Sat, 27 Dec 2025 12:43:47 +0000 (13:43 +0100)
committerNick Hainke <vincent@systemli.org>
Sat, 27 Dec 2025 15:28:11 +0000 (16:28 +0100)
commit571d716e694ebf5c4ca0255d1f86a24c9899f4cb
tree9cf9e2853524e31e18e322a590c8c4c6c7920c8d
parent380e5ea1f2a2fc158f5e438558dcbde90a975c4b
wifi-scripts: fix race in wireless interface creation

When wdev interfaces and hostapd interfaces are mixed, race conditions
can occur. Sometimes all interfaces are started correctly, sometimes only
the wdev interface and some of the hostapd interfaces, and sometimes only
the wdev interface.

Fix this by creating the wdev interfaces first, before processing
wpa_supplicant or hostapd interfaces.

Link: https://github.com/openwrt/openwrt/pull/21303
Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit 2015a40c387119d56c290734f571c41878938e88)
package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh