[PATCH 2/3] wpa_supplicant: Complete radio works on disable event
Peer, Ilan
ilan.peer
Sat Feb 15 23:21:15 PST 2014
> On Thu, Feb 13, 2014 at 11:24:00AM +0200, Ilan Peer wrote:
> > While testing rfkill blocking of a scanning interface, it was seen
> > that the ongoing scan never completes. This happens since
> > EVENT_SCAN_RESULTS is discarded on a disabled interface.
> >
> > Fix this and also other possible radio work completion issues by
> > removing all the radio works (including started) of the disabled
> > interface.
> >
> > To be able to remove already started radio works, make their callbacks
> > be reentrant with deinit flag (when the work is started), so each
> > radio work should be able to handle it's own termination.
>
> Thanks, applied. I saw this in my hwsim test runs today as well (when a P2P
> group interface was removed while a scan was in progress).
>
Great (we were not 100 % that this is the best approach ... :)).
Thanks,
Ilan.
More information about the Hostap
mailing list