Skip to content

Commit

Permalink
wifi-scripts: fix failing mesh setup with missing wpa_supplicant
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
blocktrron committed Dec 12, 2024
1 parent 1375a7b commit 1be18c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1be18c6

Please sign in to comment.