mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-17 01:01:53 +02:00
a81af1e631
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34464 3c298f89-4303-0410-b956-a3cf2f4a3e73
22 lines
848 B
Diff
22 lines
848 B
Diff
--- a/net/wireless/reg.c
|
|
+++ b/net/wireless/reg.c
|
|
@@ -901,7 +901,7 @@ static void handle_channel(struct 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;
|
|
}
|
|
@@ -1323,7 +1323,8 @@ static void handle_channel_custom(struct
|
|
|
|
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,
|