Fix channel tracking for clients by using packet channel if available

This commit is contained in:
Yaro Kasear 2025-05-02 09:32:11 -05:00
parent 07cbb5c62c
commit cf3c235415

View file

@ -115,7 +115,8 @@ def handle_packet(pkt):
# Track channel seen on
if pkt.haslayer(RadioTap) and hasattr(pkt[RadioTap], 'ChannelFrequency'):
# Nah, be lazy
bssid_channels[a2] = current_channel
if packet_channel:
bssid_channels[a2] = packet_channel
# === Track all seen clients ===
if dot11.type == 2: