3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02:00

scan: change scan triggered notification behavior

Do not notify the caller after the first scan_triggered event in
multi-segmented scans.
This commit is contained in:
Tim Kourt 2018-09-18 14:48:50 -07:00 committed by Denis Kenzior
parent b5aefede95
commit 59c4c8ac6b

View File

@ -254,8 +254,15 @@ static void scan_triggered(struct l_genl_msg *msg, void *userdata)
sr->passive ? "Passive" : "Active", sc->ifindex);
sr->triggered = true;
if (sr->trigger)
if (sr->trigger) {
sr->trigger(0, sr->userdata);
/*
* Reset callback for the consequent scan triggerings of the
* multi-segmented scans.
*/
sr->trigger = NULL;
}
}
struct scan_freq_append_data {