mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 22:19:23 +01:00
scan: Make sure to reset triggered for aborted scans
If the scan was triggered and later aborted, make sure to reset the triggered value when the CMD_NEW_SCAN_RESULTS event comes in. src/station.c:station_enter_state() Old State: disconnected, new state: connecting src/scan.c:scan_notify() Scan notification 33 src/station.c:station_netdev_event() Associating src/scan.c:scan_notify() Scan notification 34 Aborting (signal 11) [/home/denkenz/iwd-master/src/iwd] ++++++++ backtrace ++++++++ #0 0x7efd4d6a2ef0 in /lib64/libc.so.6 #1 0x42b20d in scan_notify() at src/scan.c:1383
This commit is contained in:
parent
5ff23af29e
commit
7ba4f53c57
@ -1394,13 +1394,13 @@ static void scan_notify(struct l_genl_msg *msg, void *user_data)
|
|||||||
|
|
||||||
/* Was this our own scan or an external scan */
|
/* Was this our own scan or an external scan */
|
||||||
if (sc->triggered) {
|
if (sc->triggered) {
|
||||||
|
sc->triggered = false;
|
||||||
|
|
||||||
if (!sr->callback) {
|
if (!sr->callback) {
|
||||||
scan_finished(sc, -ECANCELED, NULL, sr);
|
scan_finished(sc, -ECANCELED, NULL, sr);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
sc->triggered = false;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If this was the last command for the current request
|
* If this was the last command for the current request
|
||||||
* avoid starting the next request until the GET_SCAN
|
* avoid starting the next request until the GET_SCAN
|
||||||
|
Loading…
Reference in New Issue
Block a user