Fix WiFi client updates, rogue AP detection, and channel recommendation

Backend:
- Send client updates when probes or signal change significantly
- Previously only new clients were reported, updates were ignored

Frontend:
- Add client cards to device list (was only showing networks)
- Fix rogue AP detection to check OUI - excludes legitimate mesh systems
- Improve channel recommendation with detailed usage breakdown
- Show per-channel interference counts for 2.4GHz
- Show unused channel count for 5GHz

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-08 14:27:15 +00:00
parent 81c5af474d
commit 556ca59a99
2 changed files with 135 additions and 13 deletions

View File

@@ -359,6 +359,20 @@ def stream_airodump_output(process, csv_path):
'action': 'new',
**client
})
else:
# Send update if probes changed or signal changed significantly
old_client = app_module.wifi_clients[mac]
old_probes = old_client.get('probes', '')
new_probes = client.get('probes', '')
old_power = int(old_client.get('power', -100) or -100)
new_power = int(client.get('power', -100) or -100)
if new_probes != old_probes or abs(new_power - old_power) >= 5:
app_module.wifi_queue.put({
'type': 'client',
'action': 'update',
**client
})
app_module.wifi_networks = networks
app_module.wifi_clients = clients