Repository navigation
Commit c4ac9d1
authored
fix(network): show live signal strength and classify auth failures (#312)
# Description
- [x] Bug fix
Stacked on #311, review after it merges. Last PR in the #306 split.
Live Wi-Fi signal strength and auth-failure classification.
- `_active_ap_signal`, `_signal_map_once`, `_read_connectivity`,
`_is_wifi_ap_mode`
- `_classify_settings_error`; `_validate_psk` follows NM's own psk rule
(length in bytes, SAE exempt) and runs before the old profile is backed
up
- `_wait_for_connection` stops early when the Wi-Fi device reports
FAILED (the StateChanged listener counts it, since NM leaves FAILED too
fast for polling to see it)
- Connection waits read the Wi-Fi interface's own IP, so an ethernet or
VPN primary link can't fake success
- `_async_get_network_password` prefills the saved-network password
field; saved page shows the static IP/mask
- `networkWindow.py` operation-result routing (success/failure/timeout
handlers); the hotspot page's activate drops ethernet like the toggle
does
- `test_network_ui.py`, `test_worker_unit.py`,
`test_worker_helpers_unit.py` coverage1 parent ad25544 commit c4ac9d1
8 files changed
Lines changed: 1245 additions & 493 deletions
File tree
- BlocksScreen/lib
- network
- panels
- tests/network
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
173 | | - | |
| 175 | + | |
174 | 176 | | |
175 | 177 | | |
| 178 | + | |
| 179 | + | |
176 | 180 | | |
177 | 181 | | |
178 | 182 | | |
| |||
249 | 253 | | |
250 | 254 | | |
251 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
252 | 260 | | |
253 | 261 | | |
254 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
0 commit comments