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 <noreply@anthropic.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user