[PATCH] Fix scanning state when sched_scan is stopped explicitly

Johannes Berg johannes at sipsolutions.net
Mon Mar 9 16:11:45 EDT 2015


On Mon, 2015-03-09 at 13:07 -0700, Dmitry Shmidt wrote:

> If you can hint me what this change was about, I'll try to find it.
> Meanwhile the only change I see between 3.19 and 3.4 in
> __cfg80211_stop_sched_scan() is to use rtnl_lock instead of sched_scan_mtx.
> Other than that the logic is the same - send stop command to the driver and send
>  NL80211_CMD_SCHED_SCAN_STOPPED back to user space.
> And I see (I didn't try 3.19) that it will come "too late".

Looks like cfg80211 could do this correctly, but mac80211 insists on
doing the scheduled work. Given that locks the RTNL it's not going to be
simple to actually implement it.

It therefore seems far more likely then that I'm just confused and was
thinking about something else, sorry about that.

johannes



More information about the HostAP mailing list