public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Jouni Malinen <j@w1.fi>
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, 08 Mar 2009 15:25:33 +0100	[thread overview]
Message-ID: <1236522333.4205.37.camel@johannes.local> (raw)
In-Reply-To: <20090308141703.GA10782@jm.kir.nu>

[-- Attachment #1: Type: text/plain, Size: 1645 bytes --]

On Sun, 2009-03-08 at 16:17 +0200, Jouni Malinen wrote:
> 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.. ;-) 

Sorry, I meant correct. Why is it not correct? wme_downgrade_ac doesn't
modify the skb when it returns an error.

> 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).

True. I'm just questioning that this really is what's happening with
this patch :)

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2009-03-08 14:25 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
2009-03-08 14:25     ` Johannes Berg [this message]
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=1236522333.4205.37.camel@johannes.local \
    --to=johannes@sipsolutions.net \
    --cc=j@w1.fi \
    --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