Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:37728 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933787Ab1CXUlT (ORCPT ); Thu, 24 Mar 2011 16:41:19 -0400 Subject: Re: Aggregation problem with rt2800 AP and Intel 5100 STA From: Johannes Berg To: Emmanuel Grumbach Cc: Helmut Schaa , linux-wireless@vger.kernel.org In-Reply-To: <1300999201.3849.0.camel@jlt3.sipsolutions.net> References: <201103232358.29966.helmut.schaa@googlemail.com> <201103241409.03170.helmut.schaa@googlemail.com> <1300972793.26265.2.camel@jlt3.sipsolutions.net> <201103241457.46343.helmut.schaa@googlemail.com> <1300987930.26265.6.camel@jlt3.sipsolutions.net> <1300999201.3849.0.camel@jlt3.sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Date: Thu, 24 Mar 2011 21:41:17 +0100 Message-ID: <1300999277.3849.1.camel@jlt3.sipsolutions.net> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, 2011-03-24 at 21:40 +0100, Johannes Berg wrote: > On Thu, 2011-03-24 at 22:38 +0200, Emmanuel Grumbach wrote: > > > >> STA -> AP nullfunc PM=1 > > >> AP -> STA AMPDU (seqnr 3106 - 3112) > > >> AP -> STA AMPDU (seqnr 3106 - 3112), retry > > >> AP -> STA AMPDU (seqnr 3106 - 3112), retry > > >> AP -> STA AMPDU (seqnr 3106 - 3112), retry > > >> AP -> STA AMPDU (seqnr 3106 - 3112), retry > > >> AP -> STA AMPDU (seqnr 3106 - 3112), retry > > >> ... > > >> STA -> AP nullfunc PM=0 > > >> ... > > > > Hold on, why do mac80211 send a frame to a sleeping station ? > > Am I stupid or is this buggy ? > > Heh, neither. This happens when the frame is already queued on the > hardware queue. Of course, most (sane) hardware/firmware designs have some way to avoid that race by having the device itself note the WAKE->SLEEP transition, and the requiring the driver to tell the device about the SLEEP->WAKE transition, which enables us to never do this (sending a frame to a station that is now asleep). johannes