From 8cd09b08a085e16579c405f91340ab25ff51b655 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 3 Oct 2012 18:57:25 +0000 Subject: mac80211: fix regulatory tx power initialization git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33610 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches/526-cfg80211_fix_max_reg_power.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 package/mac80211/patches/526-cfg80211_fix_max_reg_power.patch (limited to 'package/mac80211/patches') 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 0000000000..6f8d53f952 --- /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, -- cgit v1.2.3