public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Jouni Malinen <j@w1.fi>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Jouni Malinen <jouni.malinen@atheros.com>,
	"John W. Linville" <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: Fix WMM ACM parsing and AC downgrade operation
Date: Sun, 8 Mar 2009 16:17:03 +0200	[thread overview]
Message-ID: <20090308141703.GA10782@jm.kir.nu> (raw)
In-Reply-To: <1236515287.4205.11.camel@johannes.local>

On Sun, Mar 08, 2009 at 01:28:07PM +0100, Johannes Berg wrote:
> On Thu, 2009-03-05 at 17:23 +0200, Jouni Malinen wrote:
> 
> > @@ -99,10 +99,13 @@ static u16 classify80211(struct ieee8021
> >  	/* in case we are a client verify acm is not set for this ac */
> >  	while (unlikely(local->wmm_acm & BIT(skb->priority))) {
> >  		if (wme_downgrade_ac(skb)) {
> > -			/* The old code would drop the packet in this
> > -			 * case.
> > +			/*
> > +			 * This should not really happen. The AP has marked all
> > +			 * lower ACs to require admission control which is not
> > +			 * a reasonable configuration. Allow the frame to be
> > +			 * transmitted using AC_BK as a workaround.
> >  			 */
> > -			return 0;
> > +			break;
> 
> It seems to me that return 0 here was incorrect, or wme_downgrade_ac
> needs changes?

Yes, this return 0 was incorrect and that's why I'm fixing it to not
return 0 in this patch.. ;-) In theory, the correct behavior would be to
drop the frame if the AP is using mandatory admission control for all
ACs, but in practice, it is probably better not to break the connection
completely if the AP is misconfigured. The behavior after this patch is
to downgrade the AC until one is found without ACM and if no such AC
exists, use the lowest priority (AC_BK).

-- 
Jouni Malinen                                            PGP id EFC895FA

  reply	other threads:[~2009-03-08 14:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-05 15:23 [PATCH] mac80211: Fix WMM ACM parsing and AC downgrade operation Jouni Malinen
2009-03-08 12:28 ` Johannes Berg
2009-03-08 14:17   ` Jouni Malinen [this message]
2009-03-08 14:25     ` Johannes Berg
2009-03-08 17:59       ` Jouni Malinen
2009-03-08 19:02         ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090308141703.GA10782@jm.kir.nu \
    --to=j@w1.fi \
    --cc=johannes@sipsolutions.net \
    --cc=jouni.malinen@atheros.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox