Permalink
Browse files

Configuration interface for Anyfi.net on residential gateways.

To make configuration as simple as possible for the end-subscriber there is only
a single checkbox controlling the 'anyfi_disabled' property on both the
wifi-device and on the wifi-iface. This allows the service provider to set the
controller, e.g. using TR-069 or similar, and the end-subscriber to "opt-out".

Also note that the "Anyfi.net" brand is not visible to the end-subscriber;
Internet service providers typically want to deploy Anyfi.net technology under
their own brands.

See http://anyfi.net/documentation#s_rg for more information.
  • Loading branch information...
Anyfi.net
Anyfi.net committed Apr 16, 2014
1 parent 17d2028 commit 99f1e8853f5e2d456e67fb9950ba0002b2492cc4
@@ -0,0 +1,41 @@
--- luci-0.11+svn9964-orig/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua 2012-12-18 14:58:22.000000000 +0100
+++ luci-0.11+svn9964/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua 2014-04-15 14:27:41.663566771 +0200
@@ -390,6 +390,7 @@
s:tab("encryption", translate("Wireless Security"))
s:tab("macfilter", translate("MAC-Filter"))
s:tab("advanced", translate("Advanced Settings"))
+s:tab("mobility", translate("Mobility"))

s:taboption("general", Value, "ssid", translate("<abbr title=\"Extended Service Set Identifier\">ESSID</abbr>"))

@@ -959,4 +960,30 @@
password:depends({mode="sta-wds", eap_type="ttls", encryption="wpa"})
end

+------------------- Anyfi.net configuration (by Anyfi Networks AB)
+local controller = m.uci:get("anyfi", "controller", "hostname")
+if (fs.access("/sbin/anyfid") or fs.access("/sbin/myfid")) and controller and controller ~= "" then
+ anyfi = s:taboption("mobility", Flag, "anyfi_disabled", translate("Mobility"),
+ translate("Enable seamless and secure Wi-Fi mobility."))
+ anyfi.enabled = 0
+ anyfi.disabled = 1
+ anyfi.default = anyfi.enabled
+ anyfi.rmempty = true
+ anyfi:depends({mode="ap", encryption="psk"})
+ anyfi:depends({mode="ap", encryption="psk2"})
+ anyfi:depends({mode="ap", encryption="psk-mixed"})
+
+ -- Enable save hook: enable Anyfi.net on the radio device if the interface is enabled
+ function anyfi.remove(self, section)
+ wdev:set("anyfi_disabled", nil)
+ self.map:del(section, "anyfi_disabled")
+ end
+
+ -- Disable save hook: disable Anyfi.net on the radio device if the interface is disabled
+ function anyfi.write(self, section, value)
+ wdev:set("anyfi_disabled", value)
+ self.map:set(section, "anyfi_disabled", value)
+ end
+end
+
return m
@@ -19,6 +19,10 @@ if [ ! -e $SAVE/CUSTOMIZATION ]; then
uci set wireless.@wifi-iface[0].key="$(cat $PERSIST/KEY)"
uci commit wireless

# Set anyfi controller (default is demo.anyfi.net)
#uci set anyfi.controller.hostname="your.own.controller"
#uci commit anyfi

# Set bootstrap as theme in luci
uci set luci.main.mediaurlbase=/luci-static/bootstrap
uci commit luci

0 comments on commit 99f1e88

Please sign in to comment.