Add debug print statement for deadpoints with no clients

This commit is contained in:
Yaro Kasear 2025-05-02 09:58:26 -05:00
parent 6160948d05
commit 2aca8df967

View file

@ -233,6 +233,9 @@ def channel_hopper(interface):
time.sleep(CHANNEL_HOP_INTERVAL)
def is_deadpoint(ap_bssid):
# Once again for debugging, pretty-print APs with no clients
if ap_bssid not in ap_clients:
print(f"[!] Deadpoint detected: {ap_bssid} (no clients)")
return sum(ap_clients[ap_bssid].values()) < 2 # No meaningful client interaction
# === Main ===