wpa_supplicant stops working after pm-suspend

Aaron Small aaron.small.99a
Fri Dec 26 22:41:21 PST 2014


> But the driver seems to be misbehaving.. Which WLAN hardware and driver
are you using?

I'm using the ath9k driver with Atheros AR9285 chipset.

>> I'd rather not look into the kernel if I don't have to, but based on
these
>> logs, would that be the next place to look?

> Yes

Thanks, confirmed that the bug is in the kernel driver and I now have a fix
and everything working well.

Thanks,
Aaron

On Mon, Dec 22, 2014 at 4:19 AM, Jouni Malinen <j at w1.fi> wrote:

> On Tue, Dec 16, 2014 at 12:24:50PM -0500, Aaron Small wrote:
> > I use wpa_supplicant with NetworkManager on linux to connect to wifi. A
> few
> > months ago after a platform update (I'm not sure exactly what was
> updated,
> > whether it included wpa_supplicant and/or other things), wifi stopped
> > working after pm-suspend/resume.
>
> > So I am wondering: should wpa_supplicant work after pm-suspend/resume, or
> > is it normal that it needs to be restarted? Because I was using it with
> > NetworkManager, I don't know, maybe NetworkManager was restarting it
> > before, and isn't now and that's what broke.
>
> wpa_supplicant on its own was able to reconnect fine when I last tested
> this.
>
> > and this in wpa_supplicant's log on resume:
> > wlan0: SME: Trying to authenticate with 00:24:01:6f:15:3f (SSID='oakmore'
> > freq=2437 MHz)
>
> So wpa_supplicant is aware that connection was lost on suspend and is
> trying to recover here..
>
> > nl80211: Authentication request send successfully
> > wlan0: SME: Authentication timeout
>
> But the driver seems to be misbehaving.. Which WLAN hardware and driver
> are you using?
>
> > which seems to me like wpa_supplicant is trying to connect and linux is
> not
> > allowing it? But if something is wrong in the kernel, then I'm not sure
> why
> > restarting wpa_supplicant would fix it.
>
> Restarting wpa_supplicant will set the interface down and up which will
> likely reset driver state and can fix things there..
>
> > I'd rather not look into the kernel if I don't have to, but based on
> these
> > logs, would that be the next place to look?
>
> Yes
>
> --
> Jouni Malinen                                            PGP id EFC895FA
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20141227/b0c39891/attachment.htm>



More information about the Hostap mailing list