chore: cleanup networkinfo

remove max-bitrate it's sometimes miscalculated by nm and is not meaningful beacause it's not the actual link speed
This commit is contained in:
Alfredo Monclus committed 2026-02-04 07:22:40 -03:00
1 parent d038ca6ae4
commit 66192b6936
2 files changed
-3

No files matched your search

-1
View File
@@ -184,7 +184,6 @@ class SdbusNm:
"frequency": WifiChannels(ap.frequency)[0],
"channel": WifiChannels(ap.frequency)[1],
"signal_level": ap.strength,
"max_bitrate": ap.max_bitrate,
"BSSID": ap.hw_address,
}
for ap in all_aps
-2
View File
@@ -374,13 +374,11 @@ class Panel(ScreenPanel):
return
info = _("Password saved") + '\n' if net['known'] else ""
chan = _("Channel") + f' {net["channel"]}'
max_bitrate = _("Max:") + f"{self.format_speed(net['max_bitrate'])}"
self.networks[net['BSSID']]['icon'].set_from_pixbuf(self.get_signal_strength_icon(net["signal_level"]))
self.networks[net['BSSID']]['info'].set_markup(
"<small>"
f"{info}"
f"{net['security']}\n"
f"{max_bitrate}\n"
f"{net['frequency']} Ghz {chan} {net['signal_level']} %\n"
f"{net['BSSID']}"
"</small>"