[PATCH 2/3] wpa_supplicant: Complete radio works on disable event

Jouni Malinen j at w1.fi
Sat Feb 15 17:30:32 EST 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).

-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list