linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: "Luis R. Rodriguez" <mcgrof@gmail.com>
Cc: John Linville <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org,
	Nick Kossifidis <mickflemm@gmail.com>
Subject: Re: [PATCH 5/5] ath5k: Fix and clean mode initialization, prefer G	for AR5212
Date: Sat, 13 Oct 2007 09:34:30 +0200	[thread overview]
Message-ID: <47107506.3080303@gmail.com> (raw)
In-Reply-To: <20071012223757.GA4994@pogo>

On 10/13/2007 12:37 AM, Luis R. Rodriguez wrote:
> [PATCH 5/5] ath5k: Fix and clean mode initialization, prefer G for AR5212
> 
> Currently you get locked on B mode with AR5212s. This could be partly
> mac80211's fault with a recent regression introduced but ath5k mode
> initialization right now is pretty sloppy. For AR5212s we also currently
> start scanning in 5GHz. I've made the mode initialization on ath5k a bit
> clearer and only am registering G mode now instead of both B and G for
> AR5212s. 11Mbps is still the only stable rate but at least now we can
> work and test the other rates again.
> 
> Note: mac80211 simple rate algo throws us to 1Mbps after assoc, this is by
>         design. I recommend users to set rate to 11M for now after assoc.
> 
> Changes-licensed-under: 3-clause-BSD
> Signed-off-by: Luis R. Rodriguez <mcgrof@gmail.com>

Acked-by: Jiri Slaby <jirislaby@gmail.com>

> ---
>  drivers/net/wireless/ath5k/base.c |  106 ++++++++++++++++++++-----------------
>  net/mac80211/ieee80211_ioctl.c    |    5 ++-
>  2 files changed, 61 insertions(+), 50 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
> index 18ee995..8413950 100644
> --- a/drivers/net/wireless/ath5k/base.c
> +++ b/drivers/net/wireless/ath5k/base.c
[...]
> +	modes[0].mode = MODE_IEEE80211G;
> +	modes[1].mode = MODE_IEEE80211B;
> +	modes[2].mode = MODE_IEEE80211A;
> +
> +	max_r = ARRAY_SIZE(sc->rates);
> +	max_c = ARRAY_SIZE(sc->channels);
> +
> +	for (i = 0; i <= 2; i++) {
> +		struct ieee80211_hw_mode *mode = &modes[i];
> +		const struct ath5k_rate_table *hw_rates;
> +
> +		if (i == 0) {
> +			modes[0].rates	= sc->rates;
> +			modes->channels	= sc->channels;

:) some kind of personal diversity :D

>  	ath_dump_modes(modes);

BTW. have you tried to compare outputs from this function before the change and
after it?

regards,
-- 
Jiri Slaby (jirislaby@gmail.com)
Faculty of Informatics, Masaryk University

  reply	other threads:[~2007-10-13  7:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-12 15:00 [PATCH 0/5] ath5k: promiscuous bug, multicast, modes and docs Luis R. Rodriguez
2007-10-12 15:03 ` [PATCH 1/5] ath5k: Fix a bug which pushed us to enable promiscuous Luis R. Rodriguez
2007-10-12 15:04   ` [PATCH 2/5] Add proper support for multicast Luis R. Rodriguez
2007-10-12 15:05     ` [PATCH 3/5] Don't read AR5K_RAC_PISR on AR5210, document ath5k_int Luis R. Rodriguez
2007-10-12 15:07       ` [PATCH 4/5] Add extensive documenation for the atheros bssid_mask Luis R. Rodriguez
2007-10-12 15:07         ` [PATCH 5/5] ath5k: Fix and clean mode initialization, prefer G for AR5212 Luis R. Rodriguez
2007-10-12 21:33           ` Jiri Slaby
2007-10-12 22:37             ` Luis R. Rodriguez
2007-10-13  7:34               ` Jiri Slaby [this message]
2007-10-13  9:21               ` Nick Kossifidis
2007-10-13  9:30                 ` Nick Kossifidis
2007-10-13  9:38                   ` Jiri Slaby
2007-10-13 20:08                     ` Luis R. Rodriguez
2007-10-13 21:51                       ` Jiri Slaby
2007-10-16 15:07         ` [PATCH 4/5] Add extensive documenation for the atheros bssid_mask Randy Dunlap

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=47107506.3080303@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=mcgrof@gmail.com \
    --cc=mickflemm@gmail.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).