Hi James,
On 7/10/20 12:44 PM, James Prestwood wrote:
To use the wiphy radio work queue, scanning mostly remained the
same.
start_next_scan_request was modified to be used as the work callback,
as well as not start the next scan if the current one was done
(since this is taken care of by wiphy work queue now). All
calls to start_next_scan_request were removed, and more or less
replaced with wiphy_radio_work_done.
scan_{suspend,resume} were both removed since radio management
priorities solve this for us. ANQP requests can be inserted ahead of
scan requests, which accomplishes the same thing.
---
src/scan.c | 140 ++++++++++++++++++++++----------------------------
src/scan.h | 3 --
src/station.c | 16 +-----
3 files changed, 61 insertions(+), 98 deletions(-)
v5:
- Fixed some logic errors with exernal scans and starting the next
internal scan.
<snip>
@@ -1720,6 +1724,7 @@ static void scan_notify(struct l_genl_msg *msg,
void *user_data)
if (sc->triggered) {
sc->triggered = false;
+ sc->work_started = false;
scan_finished(sc, -ECANCELED, NULL, sr);
} else {
I took this chunk out (since scan_finished will reset work_started anyway) and
applied.
Regards,
-Denis