3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

station: Don't autoconnect via debug scans

Scans triggered via the StationDebug interface should not trigger the
autoconnect logic.
This commit is contained in:
Denis Kenzior 2021-09-16 13:47:01 -05:00
parent 163fb868c2
commit 514e3b2710

View File

@ -3957,16 +3957,13 @@ static bool station_debug_scan_results(int err, struct l_queue *bss_list,
void *userdata) void *userdata)
{ {
struct station *station = userdata; struct station *station = userdata;
bool autoconnect;
if (err) { if (err) {
station_dbus_scan_done(station); station_dbus_scan_done(station);
return false; return false;
} }
autoconnect = station_is_autoconnecting(station); station_set_scan_results(station, bss_list, freqs, false);
station_set_scan_results(station, bss_list, freqs, autoconnect);
station_dbus_scan_done(station); station_dbus_scan_done(station);
return true; return true;