3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-03-09 20:10:48 +01:00
Alvin Šipraga 8db4d9272a scan: refactor start_next_scan_request to not send duplicate requests
If start_scan_next_request() is called while a scan request
(NL80211_CMD_TRIGGER_SCAN) is still running, the same scan request will
be sent again. Add a check in the function to avoid sending a request if
one is already in progress. For consistency, check also that scan
results are not being requested (NL80211_CMD_GET_SCAN), before trying to
send the next scan request. Finally, remove similar checks at
start_next_scan_request() callsites to simplify the code.

This also fixes a crash that occurs if the following conditions are met:
  - the duplicated request is the only request in the scan request
    queue, and
  - both scan requests fail with an error not EBUSY.

In this case, the first callback to scan_request_triggered() will delete
the request from the scan request queue. The second callback will find
an empty queue and consequently pass a NULL scan_request pointer to
scan_request_failed(), causing a segmentation fault.
2020-06-08 15:10:30 -05:00
..
2019-10-11 15:37:33 -05:00
2020-01-21 16:03:28 -06:00
2020-02-17 12:27:54 -06:00
2020-04-08 21:02:15 -05:00
2019-12-09 01:47:11 -06:00
2020-04-10 06:31:19 -05:00
2020-04-17 12:22:47 -05:00
2020-01-21 16:03:28 -06:00
2020-03-17 15:35:22 -05:00
2020-01-21 16:03:28 -06:00
2020-03-06 12:17:09 -06:00
2020-04-08 21:02:15 -05:00
2020-04-08 21:02:15 -05:00
2019-05-19 13:07:13 -05:00
2020-05-02 20:56:13 -05:00
2020-03-20 10:15:50 -05:00
2017-11-28 13:20:33 -06:00
2020-04-08 21:02:15 -05:00
2020-03-20 10:21:04 -05:00
2020-04-08 12:27:57 -05:00
2020-04-08 21:47:46 -05:00
2020-02-03 11:54:28 -06:00
2020-01-21 16:03:28 -06:00
2019-07-15 14:06:26 -05:00
2020-05-01 11:38:43 -05:00
2020-04-10 06:31:19 -05:00
2020-01-16 11:37:57 -06:00
2020-04-08 21:02:15 -05:00
2020-03-17 15:35:22 -05:00
2019-11-21 20:51:21 -06:00
2020-03-18 18:15:16 -05:00
2020-03-18 18:15:16 -05:00
2020-04-24 11:39:00 -05:00
2020-04-08 21:02:15 -05:00
2020-01-17 12:50:23 -06:00