Association Frame Support (Augments client tracking)

This commit is contained in:
Yaro Kasear 2025-05-02 11:20:42 -05:00
parent 5c55276ef3
commit 231ce7e8b0

View file

@ -128,6 +128,17 @@ def handle_packet(pkt):
if mac not in aps:
unlinked_candidates.add(mac)
if dot11.type == 0 and dot11.subtype in [0, 1]:
sa = dot11.addr2.lower() if dot11.addr2 else None
da = dot11.addr1.lower() if dot11.addr1 else None
for mac in (sa, da):
if is_unicast(mac) and mac != target_ap_bssid:
clients[mac] += 1
if mac not in aps:
unlinked_candidates.add(mac)
if da in aps and is_unicast(sa):
ap_clients[da][sa] += 5
# Track clients talking to any known AP
if a1 and a2:
for bssid in aps: