3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 23:09:34 +01:00

device: use direct probe request in roam scans

This takes care of the roaming for the hidden networks.
In addition, it limits the noise responses from the
other networks.
This commit is contained in:
Tim Kourt 2018-06-28 21:02:59 -07:00 committed by Denis Kenzior
parent 5ded4890a6
commit 1fff705160

View File

@ -1212,11 +1212,15 @@ static void device_roam_scan(struct device *device,
{
struct scan_parameters params = { .freqs = freq_set, .flush = true };
/* Use an active scan to save time */
if (device->connected_network)
/* Use direct probe request */
params.ssid = network_get_ssid(device->connected_network);
device->roam_scan_id = scan_active_full(device->index, &params,
device_roam_scan_triggered,
device_roam_scan_notify, device,
device_roam_scan_destroy);
if (!device->roam_scan_id)
device_roam_failed(device);
}