Linux wireless drivers development
 help / color / mirror / Atom feed
From: "John W. Linville" <linville@tuxdriver.com>
To: Julian Calaby <julian.calaby@gmail.com>
Cc: linux-wireless@vger.kernel.org, mcgrof@gmail.com
Subject: Re: [PATCH] wireless: update old static regulatory domain rules
Date: Wed, 9 Dec 2009 19:06:12 -0500	[thread overview]
Message-ID: <20091210000612.GA8515@tuxdriver.com> (raw)
In-Reply-To: <646765f40912091437y22d322c6m295cff07a95c4ebe@mail.gmail.com>

On Thu, Dec 10, 2009 at 09:37:25AM +1100, Julian Calaby wrote:
> On Thu, Dec 10, 2009 at 07:15, John W. Linville <linville@tuxdriver.com> wrote:
> > Update "US" and "JP" for current rules, and replace "EU" rules with the
> > world roaming domain (since it was only a pseudo-domain anyway).
> >
> > Signed-off-by: John W. Linville <linville@tuxdriver.com>
> > ---
> >  net/wireless/reg.c |   75 +++++++++++++++++----------------------------------
> >  1 files changed, 25 insertions(+), 50 deletions(-)
> >
> > diff --git a/net/wireless/reg.c b/net/wireless/reg.c
> > index c01470e..baa898a 100644
> > --- a/net/wireless/reg.c
> > +++ b/net/wireless/reg.c
> > @@ -206,15 +179,17 @@ static const struct ieee80211_regdomain *static_regdom(char *alpha2)
> >                return &us_regdom;
> >        if (alpha2[0] == 'J' && alpha2[1] == 'P')
> >                return &jp_regdom;
> > +       /* Use world roaming rules for "EU", since it was a pseudo
> > +          domain anyway... */
> >        if (alpha2[0] == 'E' && alpha2[1] == 'U')
> > -               return &eu_regdom;
> > -       /* Default, as per the old rules */
> > -       return &us_regdom;
> > +               return &world_regdom;
> > +       /* Default, world roaming rules */
> > +       return &world_regdom;
> >  }
> 
> Is the if statement for the "EU" regdom really necessary (except as
> documentation) as we're returning &world_regdom by default?

No, it's not necessary except as documentation.  However, I like it
just for that reason. :-)

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

  reply	other threads:[~2009-12-10  0:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-09 20:15 [PATCH] wireless: update old static regulatory domain rules John W. Linville
2009-12-09 22:37 ` Julian Calaby
2009-12-10  0:06   ` John W. Linville [this message]
2009-12-10  0:18     ` Julian Calaby

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=20091210000612.GA8515@tuxdriver.com \
    --to=linville@tuxdriver.com \
    --cc=julian.calaby@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@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