Re: fix iwm command wait vs interface reset

2017-05-08 Thread Stefan Sperling
On Mon, May 08, 2017 at 03:54:38PM +0200, Mark Kettenis wrote: > > Date: Mon, 8 May 2017 15:36:11 +0200 > > From: Stefan Sperling > > > > In iwm_send_cmd(), look at the generation counter instead of the STOPPED > > flag > > to determine whether the interface was reset while we were sleeping. The

Re: fix iwm command wait vs interface reset

2017-05-08 Thread Mark Kettenis
> Date: Mon, 8 May 2017 15:36:11 +0200 > From: Stefan Sperling > > In iwm_send_cmd(), look at the generation counter instead of the STOPPED flag > to determine whether the interface was reset while we were sleeping. The flag > will be set if the interface is still down when the task wakes up, but

fix iwm command wait vs interface reset

2017-05-08 Thread Stefan Sperling
In iwm_send_cmd(), look at the generation counter instead of the STOPPED flag to determine whether the interface was reset while we were sleeping. The flag will be set if the interface is still down when the task wakes up, but the interface could already be up again in which case the flag will be c