diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-04-20 15:00:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-04-20 15:00:13 +0000 |
commit | 1b96b5271c4a075f0df98c45e64e6458fdf90fb0 (patch) | |
tree | c31bc103a54cdee531265f96704e88f2b043addf /package/kernel/mac80211 | |
parent | 4ffcccc4d3bca099999d044c48e0c843bf4dd78c (diff) | |
download | upstream-1b96b5271c4a075f0df98c45e64e6458fdf90fb0.tar.gz upstream-1b96b5271c4a075f0df98c45e64e6458fdf90fb0.tar.bz2 upstream-1b96b5271c4a075f0df98c45e64e6458fdf90fb0.zip |
mac80211: fallback to wpa_supplicant to setup encrypted mesh
instead of failing when authsae is not installed, also try using
wpa_supplicant as the newly added -mesh variants support mesh mode
and SAE encryption.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45520 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211')
-rw-r--r-- | package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index ec0966ea8d..d2641a49c4 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -595,16 +595,15 @@ mac80211_setup_vif() { [ -n "$mp_val" ] && iw dev "$ifname" set mesh_param "$var" "$mp_val" done - # authsae + # authsae or wpa_supplicant json_get_vars key if [ -n "$key" ]; then if [ -e "/lib/wifi/authsae.sh" ]; then . /lib/wifi/authsae.sh authsae_start_interface || failed=1 else - wireless_setup_vif_failed AUTHSAE_NOT_INSTALLED - json_select .. - return + wireless_vif_parse_encryption + mac80211_setup_supplicant || failed=1 fi fi ;; |