diff options
Diffstat (limited to 'net/wireless/reg.c')
| -rw-r--r-- | net/wireless/reg.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 3b8cbbc214d..b75756b05af 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -141,9 +141,8 @@ static const struct ieee80211_regdomain world_regdom = {  	.reg_rules = {  		/* IEEE 802.11b/g, channels 1..11 */  		REG_RULE(2412-10, 2462+10, 40, 6, 20, 0), -		/* IEEE 802.11b/g, channels 12..13. No HT40 -		 * channel fits here. */ -		REG_RULE(2467-10, 2472+10, 20, 6, 20, +		/* IEEE 802.11b/g, channels 12..13. */ +		REG_RULE(2467-10, 2472+10, 40, 6, 20,  			NL80211_RRF_PASSIVE_SCAN |  			NL80211_RRF_NO_IBSS),  		/* IEEE 802.11 channel 14 - Only JP enables @@ -908,7 +907,7 @@ static void handle_channel(struct wiphy *wiphy,  			map_regdom_flags(reg_rule->flags) | bw_flags;  		chan->max_antenna_gain = chan->orig_mag =  			(int) MBI_TO_DBI(power_rule->max_antenna_gain); -		chan->max_power = chan->orig_mpwr = +		chan->max_reg_power = chan->max_power = chan->orig_mpwr =  			(int) MBM_TO_DBM(power_rule->max_eirp);  		return;  	} @@ -1331,7 +1330,8 @@ static void handle_channel_custom(struct wiphy *wiphy,  	chan->flags |= map_regdom_flags(reg_rule->flags) | bw_flags;  	chan->max_antenna_gain = (int) MBI_TO_DBI(power_rule->max_antenna_gain); -	chan->max_power = (int) MBM_TO_DBM(power_rule->max_eirp); +	chan->max_reg_power = chan->max_power = +		(int) MBM_TO_DBM(power_rule->max_eirp);  }  static void handle_band_custom(struct wiphy *wiphy, enum ieee80211_band band,  |