3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-02-28 10:50:40 +01:00
Andrew Zaborowski d0ccb8496a scan: Fix tracking external scans in sc->state
sc->state would get set when the TRIGGERED event arrived or when the
triggered callback for our own SCAN_TRIGGER command is received.
However it would not get reset to NOT_RUNNING when the NEW_SCAN_RESULTS
event is received, instead we'd first request the results with GET_SCAN
and only reset sc->state when that returns.  If during that command a
new scan gets triggered, the GET_SCAN callback would still reset
sc->state and clobber the value set by the new scan.

To fix that repurpose sc->state to only track that period from the
TRIGGERED signal to the NEW_SCAN_RESULTS signal.  sc->triggered can be
used to check if we're still waiting for the GET_SCAN command and
sc->start_cmd_id to check if we're waiting for the scan to get
triggered, so one of these three variables will now always indicate if
a scan is in progress.
2019-03-11 17:28:41 -05:00
..
2018-10-08 21:38:30 -05:00
2018-04-19 11:49:41 -05:00
2018-04-19 11:49:41 -05:00
2018-07-17 18:52:59 -05:00
2018-11-16 16:59:59 -06:00
2019-01-22 11:40:07 -06:00
2018-10-19 00:20:35 -05:00
2018-11-29 11:34:07 -06:00
2019-01-31 12:41:58 -06:00
2019-01-11 17:36:33 -06:00
2018-08-08 19:43:05 -05:00
2019-03-05 11:44:41 -06:00
2019-03-05 11:44:41 -06:00
2017-11-28 13:20:33 -06:00
2019-02-25 15:07:41 -06:00
2019-02-25 15:07:41 -06:00
2019-02-07 10:44:09 -06:00
2019-02-27 16:16:25 -06:00
2017-11-28 13:30:06 -06:00
2017-11-28 13:30:06 -06:00
2016-07-20 15:29:39 -05:00
2018-08-13 20:40:59 -05:00
2019-02-25 15:07:41 -06:00
2018-07-17 19:12:48 -05:00
2019-02-28 18:26:45 -06:00
2017-02-17 12:27:13 -06:00