Let's also exclude the AP BSSID.

This commit is contained in:
Yaro Kasear 2025-04-11 12:55:38 -05:00
parent 8809059402
commit b4f3c7fdad

View file

@ -94,7 +94,7 @@ def get_clients_on_ap(capture, ap_bssid):
return len(clients)
def get_clients_on_channel(capture, ap_channel):
def get_clients_on_channel(capture, ap_channel, ap_bssid):
from_channel_freq = CHANNEL_LOOKUP_TABLE.get(ap_channel, {}).get('freq', None)
if not from_channel_freq:
print(f"[!] Invalid channel: {ap_channel}")
@ -121,7 +121,7 @@ def get_clients_on_channel(capture, ap_channel):
da = getattr(wlan, 'da', '').lower()
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' and mac != ap_bssid:
clients.add(mac.lower())
except AttributeError: