summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/luasrc/model/cbi
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2019-02-26 04:36:32 +0000
committerYousong Zhou <yszhou4tech@gmail.com>2019-02-27 07:43:22 +0800
commite4bbc5970f6a305d14c180792ce8736b9b7e56b8 (patch)
tree753770356016180f1ed25e4203353df9624d0a52 /modules/luci-mod-network/luasrc/model/cbi
parentc17b62db1055588499e4c8b02d143904a38ae71c (diff)
wifi: add "macaddr" validator to bssid option
Resolves FS#1649 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'modules/luci-mod-network/luasrc/model/cbi')
-rw-r--r--modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua b/modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua
index 1ac79d8ee7..16d230c3dd 100644
--- a/modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua
+++ b/modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua
@@ -396,6 +396,7 @@ ssid:depends({mode="sta-wds"})
ssid:depends({mode="wds"})
bssid = s:taboption("general", Value, "bssid", translate("<abbr title=\"Basic Service Set Identifier\">BSSID</abbr>"))
+bssid.datatype = "macaddr"
network = s:taboption("general", Value, "network", translate("Network"),
translate("Choose the network(s) you want to attach to this wireless interface or " ..