wifi-scripts: fix failing mesh setup with missing wpa_supplicant
authorDavid Bauer <mail@david-bauer.net>
Thu, 12 Dec 2024 15:36:50 +0000 (16:36 +0100)
committerDavid Bauer <mail@david-bauer.net>
Thu, 12 Dec 2024 15:40:14 +0000 (16:40 +0100)
commit1be18c6daad83bc4198dc7aefd9979b7fe8fbfd4
tree380fd2bc1c40c946e15cbf135db3f75835571533
parent1375a7bae0d5e8dddb6b6cfe0584a399cd6c20b4
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>
package/network/config/wifi-scripts/files/lib/netifd/wireless/mac80211.sh