From b6d6b8989a55475249d11789637482fcb50ecd5b Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Tue, 15 Apr 2025 10:49:05 -0500 Subject: [PATCH] Fix get_aps_on_channel to call get_aps directly; remove redundant return statement --- enrich.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/enrich.py b/enrich.py index d1dfff6..c279abf 100755 --- a/enrich.py +++ b/enrich.py @@ -202,7 +202,7 @@ def get_clients_on_channel(capture, ap_channel, ap_bssid): return len(clients) def get_aps_on_channel(capture, ap_channel): - return len(get_aps_on_channel(capture, ap_channel)) + return len(get_aps(capture, ap_channel)) def calculate_signal_strength_stats(capture, ap_channel): try: @@ -326,7 +326,6 @@ def analyze_pcap(pcapng_path, start_ts, end_ts, ap_bssid, ap_channel): return clients_on_ap, clients_on_channel, aps_on_channel, None, avg_ap_signal, max_ap_signal, unlinked_devices - def main(): args = parse_args() cap = pyshark.FileCapture(