]> git.ipfire.org Git - thirdparty/openwrt.git/commit
wifi-scripts: ucode: check wpa_supplicant exists before mesh probe 23607/head
authorFlorian Maurer <fmaurer@disroot.org>
Sun, 31 May 2026 21:04:41 +0000 (21:04 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 29 Jun 2026 07:26:56 +0000 (09:26 +0200)
commit946b820856057a801f596cc96df31c21eaa60f4f
tree20db8ef549062cb17e19e006c3c873d378d1d5e5
parent010e8b731a98ab180a8a4826e2d03c19b244fe22
wifi-scripts: ucode: check wpa_supplicant exists before mesh probe

The mesh capability check unconditionally ran wpa_supplicant -vmesh to
detect driver support. On devices where wpa_supplicant is not installed,
this produces a "/bin/sh: wpa_supplicant: not found" error in the logs
on every wifi reconfiguration even when no mesh interface is configured.

Guard the invocation with fs.access() so the binary is only executed
when it is actually present, and use its absolute path to avoid relying
on $PATH.

Signed-off-by: Florian Maurer <fmaurer@disroot.org>
Link: https://github.com/openwrt/openwrt/pull/23607
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh