As requested by https://dev.openwrt.org/ticket/12078#comment:12 I send my
LuCI-Patch for
trunk/feeds/luci/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua.
It allows to setup Mesh-ID via LuCI. It is also possible to set up a AuthSAE
password and to enable Root and Gate announcment within mesh networks.
Enable AuthSAE via LuCI does set "wireless.@wifi-iface[...].encryption=authsae"
and "wireless.@wifi-iface[...].key=PASSWORD".
This probaly has to be adapted to https://dev.openwrt.org/changeset/37554 .
Enable Root / Gate announcment sets "wireless.@wifi-iface[...].mesh_root=1" /
"wireless.@wifi-iface[0].mesh_gate=1".
This probaly has to be adapted to https://dev.openwrt.org/changeset/36640.
I'm quite busy right now and I don't know if I have the time to fix this the
next days.
So pehrhaps someone who feels comfort in lua scripting likes to do that.
Cheers,
Tom
diff -u -r -N a/wifi.lua b/wifi.lua
--- a/wifi.lua 2013-07-27 17:15:06.721413837 +0200
+++ b/wifi.lua 2013-07-27 17:14:49.829414367 +0200
@@ -398,6 +398,17 @@
mode:value("ap", translate("Access Point"))
mode:value("sta", translate("Client"))
mode:value("adhoc", translate("Ad-Hoc"))
+mesh_id = s:taboption("general", Value, "mesh_id", translate("Mesh-ID"))
+mesh_id:depends({mode="mesh"})
+mesh_root = s:taboption("general", ListValue, "mesh_root", translate("Root Announcement"))
+mesh_gate = s:taboption("general", ListValue, "mesh_gate", translate("Gate Announcement"))
+mesh_root:depends({mode="mesh"})
+mesh_root:value("0", translate("no"))
+mesh_root:value("1", translate("yes"))
+mesh_gate:depends({mode="mesh"})
+mesh_gate:value("0", translate("no"))
+mesh_gate:value("1", translate("yes"))
+
bssid = s:taboption("general", Value, "bssid", translate("<abbr title=\"Basic Service Set Identifier\">BSSID</abbr>"))
@@ -729,6 +740,7 @@
local has_sta_eap = (os.execute("wpa_supplicant -veap >/dev/null 2>/dev/null") == 0)
if hostapd and supplicant then
+ encr:value("authsae", "Auth SAE", {mode="mesh"})
encr:value("psk", "WPA-PSK", {mode="ap"}, {mode="sta"}, {mode="ap-wds"}, {mode="sta-wds"})
encr:value("psk2", "WPA2-PSK", {mode="ap"}, {mode="sta"}, {mode="ap-wds"}, {mode="sta-wds"})
encr:value("psk-mixed", "WPA-PSK/WPA2-PSK Mixed Mode", {mode="ap"}, {mode="sta"}, {mode="ap-wds"}, {mode="sta-wds"})
@@ -737,6 +749,7 @@
encr:value("wpa2", "WPA2-EAP", {mode="ap"}, {mode="sta"}, {mode="ap-wds"}, {mode="sta-wds"})
end
elseif hostapd and not supplicant then
+ encr:value("authsae", "Auth SAE", {mode="mesh"})
encr:value("psk", "WPA-PSK", {mode="ap"}, {mode="ap-wds"})
encr:value("psk2", "WPA2-PSK", {mode="ap"}, {mode="ap-wds"})
encr:value("psk-mixed", "WPA-PSK/WPA2-PSK Mixed Mode", {mode="ap"}, {mode="ap-wds"})
@@ -749,6 +762,7 @@
"and ad-hoc mode) to be installed."
)
elseif not hostapd and supplicant then
+ encr:value("authsae", "Auth SAE", {mode="mesh"})
encr:value("psk", "WPA-PSK", {mode="sta"}, {mode="sta-wds"})
encr:value("psk2", "WPA2-PSK", {mode="sta"}, {mode="sta-wds"})
encr:value("psk-mixed", "WPA-PSK/WPA2-PSK Mixed Mode", {mode="sta"}, {mode="sta-wds"})
@@ -821,6 +835,7 @@
acct_secret.password = true
wpakey = s:taboption("encryption", Value, "_wpa_key", translate("Key"))
+wpakey:depends("encryption", "authsae")
wpakey:depends("encryption", "psk")
wpakey:depends("encryption", "psk2")
wpakey:depends("encryption", "psk+psk2")
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel