Return-path: Received: from mail.gmx.net ([213.165.64.20]:35694 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752626AbYIWHFh (ORCPT ); Tue, 23 Sep 2008 03:05:37 -0400 Subject: Re: ACK matching [was: TX status reporting with help of an ack queue] From: Mattias Nissler To: Mikko =?ISO-8859-1?Q?Virkkil=E4?= Cc: Ivo van Doorn , Johannes Berg , Jouni Malinen , rt2400-devel@lists.sourceforge.net, "John W. Linville" , linux-wireless , dsd@gentoo.org, kune@deine-taler.de In-Reply-To: <1222150197.22224.62.camel@virkkmi-linux> References: <1221494693.14102.22.camel@virkkmi-linux> <1221505251.4511.77.camel@localhost> <1221541089.14102.44.camel@virkkmi-linux> <200809162018.42576.IvDoorn@gmail.com> <1221770220.4563.3.camel@localhost> <1221776990.4563.19.camel@localhost> <1221815294.19539.15.camel@virkkmi-linux> <1221817584.4491.29.camel@localhost> (sfid-20080919_114701_416600_478C4255) <1221818057.10419.58.camel@johannes.berg> <1221819579.4491.34.camel@localhost> (sfid-20080919_122011_765612_F53F8EFC) <1221820265.10419.78.camel@johannes.berg> <1221832302.4514.6.camel@localhost> <1221834033.22224.22.camel@virkkmi-linux> <48D3E662.9050902@w1.fi> <1222150197.22224.62.camel@virkkmi-linux> Content-Type: text/plain; charset=ISO-8859-1 Date: Tue, 23 Sep 2008 09:05:31 +0200 Message-Id: <1222153531.4529.2.camel@localhost> (sfid-20080923_090540_735114_FBC6ABE0) Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, 2008-09-23 at 09:09 +0300, Mikko Virkkil=E4 wrote: > On Fri, 2008-09-19 at 20:50 +0300, Jouni Malinen wrote: > > Mikko Virkkil=E4 wrote: > > > On Fri, 2008-09-19 at 15:51 +0200, Mattias Nissler wrote: > > >> On Fri, 2008-09-19 at 12:31 +0200, Johannes Berg wrote: > > >>> But you can do workarounds all you want in hostapd, I don't car= e. > >=20 > > But I do care.. ;-) As such, I would change that to "you can do > > workarounds in your copy of hostapd". And yes, this would likely be= the > > best location for the workaround. > >=20 > > >>> However, I do think that if the hardware just isn't up to the j= ob you > > >>> should probably buy new hardware, after all, it's dirt cheap. := ) > >=20 > > I have never seen wlan design that does not report frame ACK status > > properly for transmitted unicast frames. Is it absolutely clear tha= t > > that is indeed the case here or could we should be missing some > > documentation explaining how this should be done? > >=20 > > > I'd really love for some workaround that would allow AP mode to w= ork.=20 > >=20 > > The workaround would be to make hostapd generate bogus TX callback > > internally with claim for a successfully received ACK when sending > > (re)association response. I'm not very keen on including such > > functionality and certainly do not consider dropping the correct > > behavior because of a broken hw design. > >=20 > > If someone can come up with a clean patch that allows this to be > > configured in hostapd.conf without affecting the default behavior, = I > > could consider applying the changes. However, please keep in mind t= hat > > I'm interested in using TX status reporting to improve reliability = of > > connection setup, so its use is more likely to increase in the futu= re. > >=20 > > > It would be great if it could be deemed that the protocol doesn't= really > > > require CTS protection/status information, and can be made reliab= le and > > > standards compliant without support for it from the driver. > > > Unfortunately I don't have high hopes for that, but I wonder what= 's Mr. > > > Malinen's opinion? > >=20 > > IEEE 802.11 association state in the AP is changed when receiving a= n ACK > > from the STA for a (re)association response frame with success stat= us > > (see IEEE Std 802.11-2007, 11.3.2.2). In order to be able to implem= ent > > this correctly, AP mode operation require the TX status callback to > > provide information for the ACK status of (re)association response > > frames. > >=20 > > I would also like to see this status used to speed up recovery from= =20 > > dropped EAPOL frames during IEEE 802.1X EAP authentication, 4-way > > handshake and group handshake. In certain environments, this could > > improve stability of connection establishment greatly. > >=20 > > - Jouni >=20 > Well, sounds like there are good reasons to keep investigating the > possibility of fixing this a bit more properly in the driver.=20 >=20 > If we turn off the AUTO_TX_SEQ and/or TXD_W1_HW_SEQUENCE (what'as the > difference?) and assigning sequence numbers manually, could we then > match the ack-frame's sequence number to the ones we have sent? Unfortunately, ACK frames do not carry sequence numbers. Only managemen= t and control frames have them. Mattias -- To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html