From 0ffd220022d2b21bd6c6bb4f4e7473d8feb8c43a Mon Sep 17 00:00:00 2001 From: User Date: Sun, 1 Feb 2026 03:29:48 +0100 Subject: [PATCH] fix: use configured wifi_interface for WiFi scanning The scan_wifi() calls were using the default "wlan0" instead of the configured interface from config.yaml. This broke WiFi scanning on systems with non-standard interface names like wlo1. Co-Authored-By: Claude Opus 4.5 --- src/rf_mapper/web/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rf_mapper/web/app.py b/src/rf_mapper/web/app.py index 6790381..7e1c879 100644 --- a/src/rf_mapper/web/app.py +++ b/src/rf_mapper/web/app.py @@ -98,7 +98,7 @@ class AutoScanner: bt = [] if self._scan_wifi: - wifi = scanner.scan_wifi() + wifi = scanner.scan_wifi(rf_config.scanner.wifi_interface) if self._scan_bluetooth: bt = scanner.scan_bluetooth() @@ -360,7 +360,7 @@ def create_app(config: Config | None = None) -> Flask: bt = [] if scan_wifi: - wifi = scanner.scan_wifi() + wifi = scanner.scan_wifi(rf_config.scanner.wifi_interface) if scan_bluetooth: bt = scanner.scan_bluetooth()