hostapd client constantly disconnects and reconnects

Drasko DRASKOVIC drasko.draskovic
Mon May 12 06:17:15 PDT 2014


On Mon, May 12, 2014 at 12:08 PM, Drasko DRASKOVIC
<drasko.draskovic at gmail.com> wrote:
> Hi Jouni,
>
> On Sun, May 11, 2014 at 6:47 PM, Jouni Malinen <j at w1.fi> wrote:
>> On Wed, Apr 30, 2014 at 06:36:54PM +0200, Drasko DRASKOVIC wrote:
>>> I have Android client connecting to hostapd on my embedded board.
>>>
>>> I connect it via WPS, and it says that it is connected.
>>>
>>> However, every few seconds it disconnectct and re-connects, having log
>>> like pasted on hostapd.
>>>
>>> What can be the source of this constant dosconnection/re-connection?
>>
>> Difficult to say since that log did not show any disconnection..
>
> I am actually seeing this:
> Connection is established and hostapd stops spitting logs on line:
> 1399888428.884275: 1399888428.884276: wlan2: STA f8:a9:d0:0b:c6:8b
> WPA: pairwise key handshake completed (RSN)
>
> Then after ~10 sec, Android phone shows no WiFi connection for a
> second, and I can see few log lines from hostapd, then phone starts
> obtaining IP address and connects. Hostapd stops logging again on the
> line:
> 1399888446.172726: 1399888446.172726: wlan2: STA f8:a9:d0:0b:c6:8b
> WPA: pairwise key handshake completed (RSN)
>
> I pasted the log that shows what happends in between these lines, just
> that I can not analyze it myself ;)
>
>> Some
>> client devices disconnect if they cannot get an IP address using DHCP,
>> so that could be one reason.
>
> Without CCMP everything works stable, and I have not reason to doubt
> in dnsmasq configuration (I currently see nothing suspicious there).

Actually, I think that problem with Android phone comes from here:
1399900077.515129: 1399900077.515131: wlan2: STA f8:a9:d0:0b:c6:8b
IEEE 802.1X: authorizing port
1399900077.515145: 1399900077.515146: wlan2: STA f8:a9:d0:0b:c6:8b
RADIUS: starting accounting session 5370C6B8-00000005
1399900077.515201: 1399900077.515202: wlan2: STA f8:a9:d0:0b:c6:8b
WPA: pairwise key handshake completed (RSN)
Sending ACK to 10.3.2.119
1399900095.911710: nl80211: Event message available
1399900095.911782: nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION)
received for wlan2
1399900095.911791: nl80211: New station f8:a9:d0:0b:c6:8b
1399900095.911798: nl80211: Assoc Req IEs - hexdump(len=65): 00 06 41
4c 54 45 52 41 01 08 82 84 8b 96 24 30 48 6c 21 02 08 13 24 02 01 0d
30 14 01 00 00 0f ac 02 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00 32
04 0c 12 18 60 dd 09 00 10 18 02 00 00 10 00 00
1399900095.911832: wlan2: Event ASSOC (0) received
1399900095.911838: Add randomness: count=31 entropy=1
1399900095.911843: random pool - hexdump(len=128): [REMOVED]
1399900095.911848: random_mix_pool - hexdump(len=16): [REMOVED]
1399900095.911852: random_mix_pool - hexdump(len=6): [REMOVED]
1399900095.911857: random pool - hexdump(len=128): [REMOVED]
1399900095.911866: 1399900095.911867: wlan2: STA f8:a9:d0:0b:c6:8b
IEEE 802.11: associated
...

And so on... This process repeats. I.e. after some time being
connected, phone si seen as a new STA and starts re-connecting and
re-obtaining IP address.

Any ideas why is this happening?

BR,
Drasko



More information about the Hostap mailing list