From owner-freebsd-wireless@FreeBSD.ORG Thu May 9 19:54:14 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id EE9AB48B; Thu, 9 May 2013 19:54:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by mx1.freebsd.org (Postfix) with ESMTP id B72D6ECF; Thu, 9 May 2013 19:54:14 +0000 (UTC) Received: by mail-pd0-f171.google.com with SMTP id r11so2258676pdi.30 for ; Thu, 09 May 2013 12:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=MEtqqrYyrfFrQWKII2/GzvvpcFnPTBxOsc4VKZarD8Q=; b=a/4dqEyyYmdkcNqUrDRXgOJ/c4k6aAe1B0YY8Mku1EBeVu6U2fApWJGtRG3IftAuPy Ut0GWHYaxx50CIanqOx41iZX0yqlukDQbqlPZqjfa6m1hMtvsHetKF1KjLiYVklaG8a9 ft2BgvnMhqT5emZAjEchaTwsfwqwxb2E0ZKjk0lSyMCfHFvVBOtoNWNbFcMmn42rMQF8 RCoG+DvIr7D1TXhAq9d4Bp1jk9H8OLuNE/Te48hfL2DoSiVGjnHJ7RGd2JgASMIKpI2R eSlP93otczErPB9g5LviNDTl+us8Hr9MWqr+vMt7o1p/998t5IXsTUc1VeAUL6paw/xU b/OQ== MIME-Version: 1.0 X-Received: by 10.68.200.10 with SMTP id jo10mr14134527pbc.53.1368129248910; Thu, 09 May 2013 12:54:08 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.70.85.73 with HTTP; Thu, 9 May 2013 12:54:08 -0700 (PDT) In-Reply-To: <1069622056.20130509234807@serebryakov.spb.ru> References: <2810538978.20130423164137@serebryakov.spb.ru> <1813905823.20130423184528@serebryakov.spb.ru> <184105677.20130424002002@serebryakov.spb.ru> <1936997795.20130424003555@serebryakov.spb.ru> <886711115.20130424004702@serebryakov.spb.ru> <6010292503.20130426001447@serebryakov.spb.ru> <99510815.20130426122508@serebryakov.spb.ru> <146903383.20130501000714@serebryakov.spb.ru> <94204652.20130501133220@serebryakov.spb.ru> <94971208.20130503122811@serebryakov.spb.ru> <105246227.20130509004931@serebryakov.spb.ru> <616955694.20130509234232@serebryakov.spb.ru> <1069622056.20130509234807@serebryakov.spb.ru> Date: Thu, 9 May 2013 12:54:08 -0700 X-Google-Sender-Auth: C5wU0dTOmQjLqeg6LudKRV8BvDU Message-ID: Subject: Re: New hardware, old problem: stuck beacon when here is WiFi traffic From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 May 2013 19:54:15 -0000 On 9 May 2013 12:48, Lev Serebryakov 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