mirror of
https://github.com/coolsnowwolf/luci
synced 2025-01-07 07:06:41 +08:00
parent
3e8eb4a5f2
commit
5071ebfded
@ -218,7 +218,7 @@
|
||||
{
|
||||
var iw = st[i];
|
||||
var is_assoc = (iw.bssid && iw.bssid != '00:00:00:00:00:00' && iw.channel && iw.mode != 'Unknown' && !iw.disabled);
|
||||
var p = (iw.quality == 0) ? 100 : iw.quality;
|
||||
var p = iw.quality;
|
||||
var q = is_assoc ? p : -1;
|
||||
|
||||
var icon;
|
||||
|
@ -7,7 +7,7 @@
|
||||
if (iw && (iw = iw[0]))
|
||||
{
|
||||
var is_assoc = (iw.bssid && iw.bssid != '00:00:00:00:00:00' && iw.channel && !iw.disabled);
|
||||
var p = (iw.quality == 0) ? 100 : iw.quality;
|
||||
var p = iw.quality;
|
||||
var q = is_assoc ? p : -1;
|
||||
|
||||
var icon;
|
||||
|
@ -497,7 +497,7 @@
|
||||
if (!is_assoc)
|
||||
icon = "<%=resource%>/icons/signal-none.png";
|
||||
else if (net.quality == 0)
|
||||
icon = "<%=resource%>/icons/signal-75-100.png";
|
||||
icon = "<%=resource%>/icons/signal-0.png";
|
||||
else if (net.quality < 25)
|
||||
icon = "<%=resource%>/icons/signal-0-25.png";
|
||||
else if (net.quality < 50)
|
||||
@ -517,7 +517,7 @@
|
||||
'<strong><%:Channel%>:</strong> %d (%.3f <%:GHz%>)<br />' +
|
||||
'<strong><%:Bitrate%>:</strong> %s <%:Mbit/s%><br />',
|
||||
icon, net.signal, net.noise,
|
||||
(net.quality == 0) ? 100 : net.quality,
|
||||
net.quality,
|
||||
net.link, net.ssid || '?',
|
||||
net.mode,
|
||||
net.channel, net.frequency,
|
||||
|
@ -785,8 +785,8 @@ elseif hwtype == "mt_dbdc" then
|
||||
encr:value("psk", "WPA-PSK")
|
||||
encr:value("psk2", "WPA2-PSK")
|
||||
encr:value("psk-mixed", "WPA-PSK/WPA2-PSK Mixed Mode")
|
||||
encr:value("sae", "WPA3-PSK")
|
||||
encr:value("sae-mixed", "WPA2-PSK/WPA3-PSK Mixed Mode")
|
||||
encr:value("sae", "WPA3-SAE")
|
||||
encr:value("sae-mixed", "WPA2-PSK/WPA3-SAE Mixed Mode")
|
||||
end
|
||||
|
||||
auth_server = s:taboption("encryption", Value, "auth_server", translate("Radius-Authentication-Server"))
|
||||
|
Loading…
Reference in New Issue
Block a user