Return-path: Received: from mga09.intel.com ([134.134.136.24]:56406 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932209Ab3DGHXz (ORCPT ); Sun, 7 Apr 2013 03:23:55 -0400 From: "Grumbach, Emmanuel" To: Jonathan McDowell CC: "linux-wireless@vger.kernel.org" , Intel Linux Wireless Subject: RE: [Ilw] Problems with Intel 2230 and AP mode Date: Sun, 7 Apr 2013 07:23:17 +0000 Message-ID: <0BA3FCBA62E2DC44AF3030971E174FB301969684@HASMSX103.ger.corp.intel.com> (sfid-20130407_092404_009469_0EFD8E7F) References: <20130402190831.GQ31591@earth.li> <0BA3FCBA62E2DC44AF3030971E174FB301965EC0@HASMSX103.ger.corp.intel.com> <20130403182153.GT31591@earth.li> In-Reply-To: <20130403182153.GT31591@earth.li> Content-Type: multipart/mixed; boundary="_002_0BA3FCBA62E2DC44AF3030971E174FB301969684HASMSX103gercor_" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: --_002_0BA3FCBA62E2DC44AF3030971E174FB301969684HASMSX103gercor_ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable > On Tue, Apr 02, 2013 at 07:11:12PM +0000, Grumbach, Emmanuel wrote: > > > > > > I'm trying to build my own wifi router, cobbling together a Debian > > > (wheezy) box, hostapd (1.0) and an Intel 2230. I'm seeing various > > > problems with the 2230 and I'm wondering if I'm mad for trying to use > > > this card in AP mode (in which case is there an alternative Intel car= d I > > > should use, or is an ath9k my best bet), or if it's worthwhile report= ing > > > the issues and trying fixes. > > > > > > I'm using 3.8.5 (and previously 3.8.4). I tried 3.9-rc4 briefly but it > > > was unusable - as soon as there was any traffic I saw errors like: > > > > > > Mar 27 19:33:51 ramen kernel: [ 7687.814137] iwlwifi 0000:04:00.0: > Stopping > > > AGG while state not ON or starting for 3 on 0 (4) > > > Mar 27 19:33:51 ramen kernel: [ 7687.818846] iwlwifi 0000:04:00.0: tx= q_id > > > mismatch: 11 0 > > > Mar 27 19:33:51 ramen kernel: [ 7687.818899] iwlwifi 0000:04:00.0: tx= q_id > > > mismatch: 11 0 > > > Mar 27 19:33:51 ramen kernel: [ 7687.818946] iwlwifi 0000:04:00.0: tx= q_id > > > mismatch: 11 0 > > > Mar 27 19:33:51 ramen kernel: [ 7687.818993] iwlwifi 0000:04:00.0: tx= q_id > > > mismatch: 11 0 > > > Mar 27 19:33:51 ramen kernel: [ 7687.819039] iwlwifi 0000:04:00.0: tx= q_id > > > mismatch: 11 0 > > > Mar 27 19:33:51 ramen kernel: [ 7687.819085] iwlwifi 0000:04:00.0: tx= q_id > > > mismatch: 11 0 > > Can you please try the patch attached? Note that I couldn't really test it so... Also, it seems that the best way to reproduce the issue is to have a statio= n disappear while TX AMPDU is working. --------------------------------------------------------------------- A member of the Intel Corporation group of companies This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. --_002_0BA3FCBA62E2DC44AF3030971E174FB301969684HASMSX103gercor_ Content-Type: application/octet-stream; name="0001-iwlwifi-dvm-handle-FLUSH-ampdu-actions-from-mac80211.patch" Content-Description: 0001-iwlwifi-dvm-handle-FLUSH-ampdu-actions-from-mac80211.patch Content-Disposition: attachment; filename="0001-iwlwifi-dvm-handle-FLUSH-ampdu-actions-from-mac80211.patch"; size=6236; creation-date="Sun, 07 Apr 2013 07:22:20 GMT"; modification-date="Sun, 07 Apr 2013 07:23:01 GMT" Content-Transfer-Encoding: base64 RnJvbSAzNzUxMTVlMjc3ZDU5NjcxN2M3ODQ5NzU3MmEzZDQxNjBiODM5Y2I1IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBFbW1hbnVlbCBHcnVtYmFjaCA8ZW1tYW51ZWwuZ3J1bWJhY2hA aW50ZWwuY29tPgpEYXRlOiBTdW4sIDcgQXByIDIwMTMgMTA6MTM6NDQgKzAzMDAKU3ViamVjdDog W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