summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-mini/luasrc/model
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-admin-mini/luasrc/model
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-admin-mini/luasrc/model')
-rw-r--r--modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua b/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua
index ec929f1ed9..799211fef4 100644
--- a/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua
+++ b/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua
@@ -169,6 +169,7 @@ s.addremove = false
s:option(Value, "ssid", translate("Network Name (<abbr title=\"Extended Service Set Identifier\">ESSID</abbr>)"))
bssid = s:option(Value, "bssid", translate("<abbr title=\"Basic Service Set Identifier\">BSSID</abbr>"))
+bssid.datatype = "macaddr"
local devs = {}
luci.model.uci.cursor():foreach("wireless", "wifi-device",