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. Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx> --- 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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html