Re: wpa_supplicant auto reconnect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2017-03-16 at 15:39 -0500, Jake Magee wrote:
> So I think the log is too big to send (400K)... here is a link to it.
> 
> https://drive.google.com/file/d/0B3BKPLtbQtZrZnNlaHRvb3BJZDQ/view?usp
> =sharing
> 
> * I connected to a test AP, everything was fine
> * I powered down the AP, lost the connection, and waited 18 minutes
> * I powered the AP back up and was pretty quickly re-connected to the
> AP
> * I then changed the AP password, and lost the connection, and waited
> 15 minutes
> * I changed the AP password back, but was never re-connected
> * After waiting 16 minutes for an auto reconnect, I did wpa_cli
> reassociate, and then was instantly reconnected to the AP

Yeah, so changing the password gets you into trouble.  The supplicant
keeps trying to connect and keeps failing, so it starts backing off:

Eventually you get this state:

1489691439.907296: Added BSSID c0:ee:fb:32:3c:38 into blacklist
1489691439.907313: Continuous association failures - consider temporary
network disabling
1489691439.907335: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0
ssid="AndroidAP" auth_failures=4 duration=77 reason=CONN_FAILED
...
1489691471.093924: wlan0: 0: c0:ee:fb:32:3c:38 ssid='AndroidAP'
wpa_ie_len=0 rsn_ie_len=20 caps=0x431 level=-43
1489691471.093944: wlan0:    skip - disabled temporarily for 46
second(s)

Where the supplicant has decided to ignore your AP for 77 seconds
because the connection failed 4 times.  It then does a scheduled scan
(asks the driver to notify it when the AP shows up again) and basically
goes to sleep.

The bug here is probably that the supplicant doesn't set a wakeup timer
for when the temporary disablement expires, and then clear the
disablement and retry the connection.

Dan

> On Thu, Mar 16, 2017 at 1:13 PM, Jake Magee <jake@xxxxxxxxxxxxx>
> wrote:
> > Absolutely... will do.
> > 
> > Thanks,
> > jake
> > 
> > On Thu, Mar 16, 2017 at 12:56 PM, Dan Williams <dcbw@xxxxxxxxxx>
> > wrote:
> > > 
> > > Are you able to grab logs done with "-dddt" (max debug plus
> > > timestamps)
> > > and share them?
> > > 
> > > Dan
> > > 
> 
> _______________________________________________
> Hostap mailing list
> Hostap@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/hostap

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux