linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Helmut Schaa <hschaa@suse.de>
Cc: linux-wireless <linux-wireless@vger.kernel.org>,
	John Linville <linville@tuxdriver.com>
Subject: Re: [PATCH/RFC] mac80211: fix association with some APs
Date: Thu, 08 May 2008 10:57:13 +0200	[thread overview]
Message-ID: <1210237033.3547.30.camel@johannes.berg> (raw)
In-Reply-To: <200805081030.57966.hschaa@suse.de>

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

On Thu, 2008-05-08 at 10:30 +0200, Helmut Schaa wrote:
> Some APs refuse association if the supported rates contained in the association
> request do not match its own supported rates. This patch introduces a new
> function which builds the intersection between the AP's supported rates and the
> client's supported rates to work around such problems. The same approach is
> already used in ipw2200 for example.

Clearly, somebody didn't read the spec. *sigh*

Quote:

10.3.3.1.2, parameter table (emphasis mine):

OperationalRateSet

The set of data rates that the STA desires
to use for communication within the BSS.
The STA must be able to receive at each
of the data rates listed in the set. This set
                                     ^^^^^^^^
is a superset of the rates contained in the
^^^^^^^^^^^^^^^^^^^^^^^^^^
BSSBasicRateSet parameter.



>  
> +	rates_len = ieee80211_compatible_rates(bss, sband, &rates);
> +	supp_rates_len = rates_len;
> +	if (supp_rates_len > 8)
> +		supp_rates_len = 8;

Please add a comment here why we do this, preferably including at least
one broken AP (so we can blame somebody ;) )

> +	if (count == 8)
> +	{

and fix this tiny coding style problem please.

johannes

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

  reply	other threads:[~2008-05-08  8:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-08  8:30 [PATCH/RFC] mac80211: fix association with some APs Helmut Schaa
2008-05-08  8:57 ` Johannes Berg [this message]
2008-05-08 11:34 ` [PATCH/RFC v2] " Helmut Schaa
2008-05-08 11:36   ` Johannes Berg
2008-05-08 21:45     ` Tomas Winkler
2008-05-08 21:51       ` Johannes Berg
2008-05-08 22:10         ` Tomas Winkler
2008-05-09  7:56       ` Kalle Valo
2008-05-09 10:26         ` Johannes Berg
2008-05-12 18:04           ` Kalle Valo

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=1210237033.3547.30.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=hschaa@suse.de \
    --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;
as well as URLs for NNTP newsgroup(s).