linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jouni Malinen <j@w1.fi>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH 4/4] hostapd: remove PRISM2_PARAM_NEXT_MODE
Date: Wed, 15 Aug 2007 18:38:03 -0700	[thread overview]
Message-ID: <20070816013803.GR1415@jm.kir.nu> (raw)
In-Reply-To: <1187174682.3998.6.camel@johannes.berg>

On Wed, Aug 15, 2007 at 12:44:42PM +0200, Johannes Berg wrote:

> Agreed as well, the plan for nl80211 was to have the tuple set together.
> I quite dislike the idea of this internal "next_mode" state but I
> suppose it's the best we have now.

I don't linke next_mode either, so if this is combined to a single
atomic operation, it would be quite a bit better way to do this.

> However, this is the reason David Woodhouse couldn't get his Broadcom
> based card to work in B mode, hostapd tried to select a B mode channel
> and b43 doesn't offer any since it offers G mode. Should the burden be
> on the driver authors here, or should we somehow select a G channel if B
> isn't available?

I would assume that the quick workaround for this would have been to
change the configuration file to use 802.11g instead of the default
i802.11b.. Anyway, the design used here does indeed assume that the
driver exports all supported mode/channel pairs and in case the hardware
card supports 802.11g, the driver would most likely claim support for
both 802.11b and 802.11g channels.

Adding code for reverting back to 802.11g version would, in theory, be
fine for most cases, but it does have some issues.. If I remember
correctly, channel 14 may only be used with 802.11b mode in Japan, so
the list of 802.11b and 802.11g channels is not the same. In this
particular case, though, the workaround of using 802.11g list would not
cause a problem (the other direction would potentially have).

-- 
Jouni Malinen                                            PGP id EFC895FA

  reply	other threads:[~2007-08-16  1:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-14  9:32 [PATCH 0/4] hostapd cleanups Johannes Berg
2007-08-14  9:32 ` [PATCH 1/4] hostapd: remove enable/disable calls Johannes Berg
2007-08-15  3:49   ` Jouni Malinen
2007-08-14  9:32 ` [PATCH 2/4] hostapd: use SIOCSIWGENIE Johannes Berg
2007-08-15  3:51   ` Jouni Malinen
2007-08-14  9:32 ` [PATCH 3/4] hostapd: use nl80211 for add/remove iface Johannes Berg
2007-08-14  9:32 ` [PATCH 4/4] hostapd: remove PRISM2_PARAM_NEXT_MODE Johannes Berg
2007-08-15  2:41   ` Jouni Malinen
2007-08-15  7:29     ` Tomas Winkler
2007-08-15 10:56       ` Johannes Berg
2007-08-15 10:44     ` Johannes Berg
2007-08-16  1:38       ` Jouni Malinen [this message]
2007-08-16 13:22         ` 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=20070816013803.GR1415@jm.kir.nu \
    --to=j@w1.fi \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /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).