Skip all personal devices from ARP seed, not just labeled ones

Operator needs ARRIVED for any phone or wearable on site, including
unknown devices. Silent seeding only applies to infrastructure and
non-personal devices.
This commit is contained in:
Cobra
2026-04-14 23:17:13 -04:00
parent a2597f5f3d
commit a77323b1a0
+4 -6
View File
@@ -827,12 +827,10 @@ def seed_from_arp_cache():
if mac == "00:00:00:00:00:00" or flags == "0x0": if mac == "00:00:00:00:00:00" or flags == "0x0":
continue continue
# Labeled personal devices must NOT be silently seeded — they need # Personal devices (phones, wearables — any LAA MAC, known mobile OUI,
# a real on_arrival call so ARRIVED fires when they rejoin. # or explicitly labeled MAC) must NOT be silently seeded. The operator
# Just update last_seen as a baseline so the watchdog has a reference. # needs ARRIVED for every device they don't already know about.
with personal_lock: if is_personal_device(mac):
is_personal = mac in device_labels or mac in personal_devices
if is_personal:
with last_seen_lock: with last_seen_lock:
if mac not in last_seen: if mac not in last_seen:
last_seen[mac] = time.time() last_seen[mac] = time.time()