Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 2013 12:54:08 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Lev Serebryakov <lev@freebsd.org>
Cc:        freebsd-wireless@freebsd.org
Subject:   Re: New hardware, old problem: stuck beacon when here is WiFi traffic
Message-ID:  <CAJ-VmokY%2BS75WiKkgo1sJc=KfjWNqRsX1zm2j=aEQE39wLC2XQ@mail.gmail.com>
In-Reply-To: <1069622056.20130509234807@serebryakov.spb.ru>
References:  <2810538978.20130423164137@serebryakov.spb.ru> <CAJ-Vmom4UDoz7EgdnVeQ%2BALuFFXkH9t_Uj7=FwL77S5rKfUD1g@mail.gmail.com> <1813905823.20130423184528@serebryakov.spb.ru> <CAJ-VmomhRaKODxis09MjAhUbAUOw%2B6jWBY48JpZR_JgfZZLKcQ@mail.gmail.com> <184105677.20130424002002@serebryakov.spb.ru> <CAJ-VmokVmHDXwE7S5koSqtFjPXQ_VUPhj8gfMruDM2k-DyUMPw@mail.gmail.com> <1936997795.20130424003555@serebryakov.spb.ru> <CAJ-Vmokx2QhcjcsgA-_kqjX63Vu4CLk7HkuyALautbnzp61ywQ@mail.gmail.com> <886711115.20130424004702@serebryakov.spb.ru> <CAJ-VmoksSTBC7jmC-_hvBeJFSD0k28HoZodaWdHm0AF0d1yZJg@mail.gmail.com> <6010292503.20130426001447@serebryakov.spb.ru> <CAJ-VmomUsPgHTVGaKHZ_YE%2Bu1ZOjGqrVfh2uYmvOs6gKmhnxOw@mail.gmail.com> <CAJ-VmokZBbmHbruKJV-8kvTyOTsiq5_XHnfqUYo3vO68872Q=w@mail.gmail.com> <99510815.20130426122508@serebryakov.spb.ru> <CAJ-VmoktRPbnDRbRuwA4i8w50kExs2pwD4yBawL6iOz7F4Bknw@mail.gmail.com> <CAJ-VmonCao99MOrm97tQS_f1xS9tieQfg-nQUB4APWVmdJJUBg@mail.gmail.com> <CAJ-VmonQXyB_Aik-ApSmgRqT3yhD5Bqrx3zj%2BKM%2BitVmZhY0TQ@mail.gmail.com> <146903383.20130501000714@serebryakov.spb.ru> <CAJ-Vmo=n27vAzsEPDwaO%2BjxS-n42WBbiNyfpvmnO931q1CKcDA@mail.gmail.com> <94204652.20130501133220@serebryakov.spb.ru> <CAJ-VmonvS_=_vgJufRc-5d4NGfkKtpsUEZh%2BTaE_Th-dEj2W9A@mail.gmail.com> <CAJ-Vmo=fFEkRr4-R3g1%2B%2BMq7QoTGD_OFWpHc5jpgbwEcgrOJYQ@mail.gmail.com> <CAJ-Vmont9febEE9jOX8ZMp7omMdQ_4wDNRr5gyq8gbpm3x18KQ@mail.gmail.com> <CAJ-Vmon0dj%2Bg1ZE28whsvtP%2BshUwoMa-E_XnQu6uFy8cSCUuZg@mail.gmail.com> <94971208.20130503122811@serebryakov.spb.ru> <CAJ-VmonPyg6a5ZidA9vZzozVGFc0XHT2MoX3OfhCBrqMxVn7cw@mail.gmail.com> <CAJ-VmomOywCicVHP8aLKXhdysad48K7bc-wRudaPYmcuQLcKYA@mail.gmail.com> <CAJ-Vmok6fFB=Tb%2BJyGfAGJMLUzJ93LN_v==TJsRv--5bWU8YGg@mail.gmail.com> <105246227.20130509004931@serebryakov.spb.ru> <CAJ-Vmon-3xdX8S15uPCMLpAs52=Tdpk8TKPsajLUpb3yNf49QQ@mail.gmail.com> <CAJ-VmomqUBnFU6wPMbpJbAR9HsvAH5kui66xJH51NUnL3jkQYw@mail.gmail.com> <616955694.20130509234232@serebryakov.spb.ru> <1069622056.20130509234807@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9 May 2013 12:48, Lev Serebryakov <lev@freebsd.org> wrote:

> f0:a2:25:ec:38:c6 is Kindle.
> c4:85:08:3f:9e:c2 is Windows client, UDP stream receiver.

Ok. So this is a different problem.

May  9 23:39:18 gateway kernel: wlan0: [f0:a2:25:ec:38:c6] RSN ie: mc
3/0 uc 3/0 key 2 caps 0x0
May  9 23:39:18 gateway kernel: wlan0: [f0:a2:25:ec:38:c6] switch
station to HT20 channel 2422/0x10480
May  9 23:39:18 gateway kernel: wlan0: [f0:a2:25:ec:38:c6] station
associated at aid 1: short preamble, short slot time, QoS, HT20
(+AMPDU)
May  9 23:39:18 gateway kernel: wlan0: [f0:a2:25:ec:38:c6] station
unauthorize via MLME
May  9 23:39:19 gateway kernel: wlan0: [c4:85:08:3f:9e:c2] RSN ie: mc
3/0 uc 3/0 key 2 caps 0x3c
May  9 23:39:19 gateway kernel: wlan0: [c4:85:08:3f:9e:c2] station
associated at aid 2: short preamble, short slot time, QoS, HT40
(+AMPDU) (+SMPS-DYN)
May  9 23:39:19 gateway kernel: wlan0: _ieee80211_crypto_delkey:
AES-CCM keyix 5 flags 0x103 rsc 0 tsc 222188 len 16
May  9 23:39:19 gateway kernel: wlan0: [c4:85:08:3f:9e:c2] pwr save q
overflow, drops 59924 (size 50)
May  9 23:39:20 gateway kernel: wlan0: [c4:85:08:3f:9e:c2] pwr save q
overflow, drops 59925 (size 50)
May  9 23:39:21 gateway kernel: wlan0: [c4:85:08:3f:9e:c2] pwr save q
overflow, drops 59926 (size 50)
May  9 23:39:21 gateway kernel: wlan0: [f0:a2:25:ec:38:c6] station
deauth via MLME (reason 2)
May  9 23:39:21 gateway kernel: wlan0: [f0:a2:25:ec:38:c6] station
with aid 1 leaves
May  9 23:39:22 gateway kernel: wlan0: [c4:85:08:3f:9e:c2] pwr save q
overflow, drops 59927 (size 50)
May  9 23:39:23 gateway kernel: wlan0: [c4:85:08:3f:9e:c2] station
deauth via MLME (reason 2)
May  9 23:39:23 gateway kernel: wlan0: [c4:85:08:3f:9e:c2] station
with aid 2 leaves

.. now, see how it's kicking you off? The transmit queue is filled
_and_ the station is asleep. We're still trying to send it stupid
amounts of data even though we can't get to the sleeping station.

So:


Try setting  wpa_group_rekey in hostapd.conf to something low, like
say 15 seconds.

See if that immediately triggers things to go pear-shaped.

Then, if it does, try running hostapd in debug mode in the foreground:

# hostapd -d -d /etc/hostapd.conf 2>&1 | tee /tmp/hostapd.log

.. and then watch what goes on with rekeying as it gets booted off.

I bet that it's missing the group rekey notification from the remote
station, and it's being disconnected.

If that's the case - great! We've fixed the hardware bug. You'll be a
perfect test candidate for my power-save queue handling changes, which
look to address this saxact problem.

(yay! I hope we've fixed the TX queue hangs!)


adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmokY%2BS75WiKkgo1sJc=KfjWNqRsX1zm2j=aEQE39wLC2XQ>