From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Luis Rodriguez <Luis.Rodriguez@Atheros.com>,
"linville@tuxdriver.com" <linville@tuxdriver.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH v2 3/5] cfg80211: Add AP beacon regulatory hints
Date: Mon, 23 Feb 2009 18:29:23 -0800 [thread overview]
Message-ID: <20090224022923.GK4264@tesla> (raw)
In-Reply-To: <1235440730.4455.51.camel@johannes.local>
On Mon, Feb 23, 2009 at 05:58:50PM -0800, Johannes Berg wrote:
> On Sat, 2009-02-21 at 00:20 -0500, Luis R. Rodriguez wrote:
>
> > +static bool freq_is_chan_12_13_14(u16 freq)
> > +{
> > + if (freq == ieee80211_channel_to_frequency(12) ||
> > + freq == ieee80211_channel_to_frequency(13) ||
> > + freq == ieee80211_channel_to_frequency(14))
> > + return true;
> > + return false;
> > +}
> > +
> > +int regulatory_hint_found_beacon(struct wiphy *wiphy,
> > + struct ieee80211_channel *beacon_chan,
> > + gfp_t gfp)
> > +{
> > + struct reg_beacon *reg_beacon;
> > +
> > + if (likely((beacon_chan->beacon_found ||
> > + (beacon_chan->flags & IEEE80211_CHAN_RADAR) ||
> > + (beacon_chan->band == IEEE80211_BAND_2GHZ &&
> > + !freq_is_chan_12_13_14(beacon_chan->center_freq)))))
> > + return 0;
>
> This doesn't seem right, shouldn't it use the world regulatory domain to
> check against rather than hardcoding it?
I'm not sure I understand, can you elaborate on what you mean.
Luis
next prev parent reply other threads:[~2009-02-24 2:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-21 5:20 [PATCH v2 0/5] cfg80211: enhance world roaming Luis R. Rodriguez
2009-02-21 5:20 ` [PATCH v2 1/5] cfg80211: enable active-scan / beaconing on Ch 1-11 for world regdom Luis R. Rodriguez
2009-02-21 5:20 ` [PATCH v2 2/5] cfg80211: enable 5 GHz world roaming channels Luis R. Rodriguez
2009-02-24 1:57 ` Johannes Berg
2009-02-21 5:20 ` [PATCH v2 3/5] cfg80211: Add AP beacon regulatory hints Luis R. Rodriguez
2009-02-24 1:58 ` Johannes Berg
2009-02-24 2:29 ` Luis R. Rodriguez [this message]
2009-02-24 2:47 ` Johannes Berg
2009-02-21 5:20 ` [PATCH v2 4/5] ath9k: follow beacon hints on reg_notifier when world roaming Luis R. Rodriguez
2009-02-21 5:20 ` [PATCH v2 5/5] cfg80211: default OLD_REG to n Luis R. Rodriguez
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=20090224022923.GK4264@tesla \
--to=lrodriguez@atheros.com \
--cc=Luis.Rodriguez@Atheros.com \
--cc=johannes@sipsolutions.net \
--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).