mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-09 16:42:33 +01: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:
parent
b5aefede95
commit
59c4c8ac6b
@ -254,8 +254,15 @@ static void scan_triggered(struct l_genl_msg *msg, void *userdata)
|
|||||||
sr->passive ? "Passive" : "Active", sc->ifindex);
|
sr->passive ? "Passive" : "Active", sc->ifindex);
|
||||||
sr->triggered = true;
|
sr->triggered = true;
|
||||||
|
|
||||||
if (sr->trigger)
|
if (sr->trigger) {
|
||||||
sr->trigger(0, sr->userdata);
|
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 {
|
struct scan_freq_append_data {
|
||||||
|
Loading…
Reference in New Issue
Block a user