Sergey Matyukevich writes:
>> > + if (timer_pending(>scan_timeout))
>> > + del_timer_sync(>scan_timeout);
>>
>> What if the device is removed while the timer is pending, is that
>> handled?
>
> Good point. I took another look at this kind of
> > + if (timer_pending(>scan_timeout))
> > + del_timer_sync(>scan_timeout);
>
> What if the device is removed while the timer is pending, is that
> handled?
Good point. I took another look at this kind of corner cases. Timer is not
disabled
explicitely. But ongoing scan request
Sergey Matyukevich writes:
> Userspace tools may hang on scan in the case when scan completion event
> is not returned by firmware. This patch implements the scan timeout
> to avoid such situation.
>
> Signed-off-by: Igor Mitsyanko