summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-10-03 18:57:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-10-03 18:57:25 +0000
commit5d119f6a8f9804cd9aef504998eebc5f1d2e0cb8 (patch)
tree6612d8db98b8da37862be1693dce28dd71fc6323 /package
parent47c5c4df1c13f9118b81b6de55a9d695024e0fb9 (diff)
downloadmtk-20170518-5d119f6a8f9804cd9aef504998eebc5f1d2e0cb8.zip
mtk-20170518-5d119f6a8f9804cd9aef504998eebc5f1d2e0cb8.tar.gz
mtk-20170518-5d119f6a8f9804cd9aef504998eebc5f1d2e0cb8.tar.bz2
mac80211: fix regulatory tx power initialization
SVN-Revision: 33610
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/526-cfg80211_fix_max_reg_power.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/mac80211/patches/526-cfg80211_fix_max_reg_power.patch b/package/mac80211/patches/526-cfg80211_fix_max_reg_power.patch
new file mode 100644
index 0000000..6f8d53f
--- /dev/null
+++ b/package/mac80211/patches/526-cfg80211_fix_max_reg_power.patch
@@ -0,0 +1,21 @@
+--- 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,