[OpenWrt-Devel] [PATCH 2/2] mac80211: fallback to wpa_supplicant to setup encrypted mesh
Daniel Golle
daniel at makrotopia.org
Thu Apr 9 19:57:07 EDT 2015
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 at makrotopia.org>
---
package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 7 +++----
1 file 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 a7848bd..0cd6e12 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -594,16 +594,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
;;
--
2.3.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list