From e4bbc5970f6a305d14c180792ce8736b9b7e56b8 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Tue, 26 Feb 2019 04:36:32 +0000 Subject: wifi: add "macaddr" validator to bssid option Resolves FS#1649 Signed-off-by: Yousong Zhou --- modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/luci-mod-admin-mini/luasrc/model') 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 (ESSID)")) bssid = s:option(Value, "bssid", translate("BSSID")) +bssid.datatype = "macaddr" local devs = {} luci.model.uci.cursor():foreach("wireless", "wifi-device", -- cgit v1.2.3