From 84b1ec0deb8766bb309753a291b79647e5412dba Mon Sep 17 00:00:00 2001 From: Sultan Qasim Khan Date: Wed, 11 Sep 2024 17:12:13 -0400 Subject: [PATCH] scanner: stop active scanning when done --- python_cli/scanner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python_cli/scanner.py b/python_cli/scanner.py index 3b19bfd..6604fb9 100755 --- a/python_cli/scanner.py +++ b/python_cli/scanner.py @@ -91,6 +91,9 @@ def main(): elif isinstance(msg, PacketMessage): handle_packet(msg) + # Stop active scanning + hw.setup_sniffer() + print("\n\nScan Results:") for a in sorted(advertisers.keys(), key=lambda k: advertisers[k].rssi_avg, reverse=True): print("="*80)