Add debug print statements for packet subtype and AP/client tracking in IndexedCapture
This commit is contained in:
parent
a1aefedaff
commit
92015c4ba7
1 changed files with 12 additions and 7 deletions
|
@ -162,21 +162,26 @@ class IndexedCapture:
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Track APs (beacons / probe responses only!)
|
# Determine subtype
|
||||||
subtype = int(getattr(wlan, 'type_subtype', '0'), 16)
|
subtype = int(getattr(wlan, 'type_subtype', '0'), 16)
|
||||||
|
|
||||||
|
# Always debug if resolved channel == AP's channel
|
||||||
|
if channel == ap_channel:
|
||||||
|
print(f"[DEBUG] Packet: subtype={subtype}, bssid={bssid}, sa={sa}, da={da}")
|
||||||
|
|
||||||
|
# Track APs (beacons / probe responses only)
|
||||||
if subtype in (5, 8) and bssid:
|
if subtype in (5, 8) and bssid:
|
||||||
window_aps[channel].add(bssid)
|
window_aps[channel].add(bssid)
|
||||||
|
|
||||||
if channel == ap_channel:
|
if channel == ap_channel:
|
||||||
print(f"[DEBUG] Adding bssid={bssid} to window_aps[{channel}]")
|
print(f"[DEBUG] [AP] Adding bssid={bssid} to window_aps[{channel}]")
|
||||||
|
|
||||||
# Track clients
|
# Track clients (always)
|
||||||
for mac in (sa, da):
|
for mac in (sa, da):
|
||||||
if mac and mac != 'ff:ff:ff:ff:ff:ff':
|
if mac and mac != 'ff:ff:ff:ff:ff:ff':
|
||||||
window_clients[channel].add(mac)
|
window_clients[channel].add(mac)
|
||||||
|
|
||||||
if channel == ap_channel:
|
if channel == ap_channel:
|
||||||
print(f"[DEBUG] Adding mac={mac} to window_clients[{channel}]")
|
print(f"[DEBUG] [CLIENT] Adding mac={mac} to window_clients[{channel}]")
|
||||||
|
|
||||||
|
|
||||||
# Track signals
|
# Track signals
|
||||||
signal = getattr(radio, 'dbm_antsignal', None)
|
signal = getattr(radio, 'dbm_antsignal', None)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue