Return-path: Received: from xc.sipsolutions.net ([83.246.72.84]:55841 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753174AbYJ3JYV (ORCPT ); Thu, 30 Oct 2008 05:24:21 -0400 Message-ID: <53ad401862d734b26836f0706a394525.squirrel@secure.sipsolutions.net> In-Reply-To: <1225329594-21704-7-git-send-email-lrodriguez@atheros.com> References: <1225329594-21704-1-git-send-email-lrodriguez@atheros.com> <1225329594-21704-2-git-send-email-lrodriguez@atheros.com> <1225329594-21704-3-git-send-email-lrodriguez@atheros.com> <1225329594-21704-4-git-send-email-lrodriguez@atheros.com> <1225329594-21704-5-git-send-email-lrodriguez@atheros.com> <1225329594-21704-6-git-send-email-lrodriguez@atheros.com> <1225329594-21704-7-git-send-email-lrodriguez@atheros.com> Date: Thu, 30 Oct 2008 10:24:17 +0100 (CET) Subject: Re: [PATCH 6/6] cfg80211: enable 5 GHz band for world regulatory domain From: "Johannes Berg" To: "Luis R. Rodriguez" Cc: linville@tuxdriver.com, "Luis R. Rodriguez" , linux-wireless@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-wireless-owner@vger.kernel.org List-ID: Luis R. Rodriguez wrote: > Technically speaking since some countries do not support > some channels in 5 GHz the world regulatory domain should not > use them however APs should *not* be shipped in those countries > which don't allow 5 GHz operation. Because of this we can > safely assume we operate correctly in STA mode by forcing > passive scan and disabling ad-hoc in 5 GHz. We leave out > all DFS channels as we don't support DFS yet. No, this is incorrect. The linux kernel can well act as an AP. > Signed-off-by: Luis R. Rodriguez > --- > net/wireless/reg.c | 12 +++++++++++- > 1 files changed, 11 insertions(+), 1 deletions(-) > > diff --git a/net/wireless/reg.c b/net/wireless/reg.c > index dd1020b..ce0c730 100644 > --- a/net/wireless/reg.c > +++ b/net/wireless/reg.c > @@ -85,7 +85,11 @@ static u32 supported_bandwidths[] = { > * information to give us an alpha2 */ > static const struct ieee80211_regdomain *cfg80211_regdomain; > > -/* We keep a static world regulatory domain in case of the absence of > CRDA */ > +/* We keep a static world regulatory domain in case of the absence of > CRDA. > + * Although some countries disable 5 GHz completely it is up to the APs > + * sold in those countries to not beacon, we can safely passive scan > though > + * on non DFS channels. We don't support yet DFS so don't include DFS > + * channels yet (5260 MHz - 5700 MHz) */ > static const struct ieee80211_regdomain world_regdom = { > .n_reg_rules = 1, > .alpha2 = "00", > @@ -93,6 +97,12 @@ static const struct ieee80211_regdomain world_regdom = > { > REG_RULE(2412-10, 2462+10, 40, 6, 20, > NL80211_RRF_PASSIVE_SCAN | > NL80211_RRF_NO_IBSS), > + REG_RULE(5170, 5260, 40, 6, 20, > + NL80211_RRF_PASSIVE_SCAN | > + NL80211_RRF_NO_IBSS), > + REG_RULE(5700, 5835, 40, 6, 20, > + NL80211_RRF_PASSIVE_SCAN | > + NL80211_RRF_NO_IBSS), > } > }; > > -- > 1.5.6.3 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-wireless" > in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > >