diff options
| author | David Bauer | 2024-12-12 15:36:50 +0000 |
|---|---|---|
| committer | David Bauer | 2024-12-12 15:40:14 +0000 |
| commit | 1be18c6daad83bc4198dc7aefd9979b7fe8fbfd4 (patch) | |
| tree | 380fd2bc1c40c946e15cbf135db3f75835571533 | |
| parent | 1375a7bae0d5e8dddb6b6cfe0584a399cd6c20b4 (diff) | |
| download | openwrt-1be18c6daad83bc4198dc7aefd9979b7fe8fbfd4.tar.gz | |
wifi-scripts: fix failing mesh setup with missing wpa_supplicant
The initialization of mesh interfaces currently fail when wpa_supplicant
is not installed. This is due to the script calling the wpa_supplicant
feature indicator without verifying wpa_supplicant is installed at all.
To avoid failing, first check if wpa_supplicant is installed before
determining the available featureset.
Signed-off-by: David Bauer <mail@david-bauer.net>
| -rwxr-xr-x | package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh b/package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh index c835b46e75..1fb3edf055 100755 --- a/package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh +++ b/package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh @@ -1023,7 +1023,7 @@ mac80211_setup_vif() { json_get_vars $MP_CONFIG_INT $MP_CONFIG_BOOL $MP_CONFIG_STRING wireless_vif_parse_encryption [ -z "$htmode" ] && htmode="NOHT"; - if wpa_supplicant -vmesh; then + if [ -x /usr/sbin/wpa_supplicant ] && wpa_supplicant -vmesh; then mac80211_setup_supplicant || failed=1 else mac80211_setup_mesh |