diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2019-02-26 04:36:32 +0000 |
---|---|---|
committer | Yousong Zhou <yszhou4tech@gmail.com> | 2019-02-27 07:43:22 +0800 |
commit | e4bbc5970f6a305d14c180792ce8736b9b7e56b8 (patch) | |
tree | 753770356016180f1ed25e4203353df9624d0a52 /modules | |
parent | c17b62db1055588499e4c8b02d143904a38ae71c (diff) |
wifi: add "macaddr" validator to bssid option
Resolves FS#1649
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua | 1 | ||||
-rw-r--r-- | modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua | 1 |
2 files changed, 2 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 ec929f1ed..799211fef 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", 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 1ac79d8ee..16d230c3d 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 " .. |