Revert "wifi: unify signal view"

This reverts commit 39c656f32c.
This commit is contained in:
coolsnowwolf 2023-06-13 23:19:37 +08:00
parent 3e8eb4a5f2
commit 5071ebfded
4 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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,

View File

@ -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"))