diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-01-30 23:35:00 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-01-30 23:35:00 +0000 |
commit | 2236171bfe21540c7059edd03ec5009e01b27dee (patch) | |
tree | 9b520173627b108a5a4d97bb3fad51c9ef20381c /package | |
parent | 2b22e20663791a58ad6ab9f0ef5f6d336fe58f62 (diff) | |
download | upstream-2236171bfe21540c7059edd03ec5009e01b27dee.tar.gz upstream-2236171bfe21540c7059edd03ec5009e01b27dee.tar.bz2 upstream-2236171bfe21540c7059edd03ec5009e01b27dee.zip |
cfg80211: revert the max power patch - it seems to be limiting tx power too much on some devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25258 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/mac80211/patches/560-cfg80211_max_power.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/package/mac80211/patches/560-cfg80211_max_power.patch b/package/mac80211/patches/560-cfg80211_max_power.patch deleted file mode 100644 index 82790b0202..0000000000 --- a/package/mac80211/patches/560-cfg80211_max_power.patch +++ /dev/null @@ -1,35 +0,0 @@ ---- a/net/wireless/reg.c -+++ b/net/wireless/reg.c -@@ -839,6 +839,12 @@ static void handle_channel(struct wiphy - if (freq_range->max_bandwidth_khz < MHZ_TO_KHZ(40)) - bw_flags = IEEE80211_CHAN_NO_HT40; - -+ if (chan->orig_mpwr) -+ chan->max_power = min(chan->orig_mpwr, -+ (int) MBM_TO_DBM(power_rule->max_eirp)); -+ else -+ chan->max_power = (int) MBM_TO_DBM(power_rule->max_eirp); -+ - if (last_request->initiator == NL80211_REGDOM_SET_BY_DRIVER && - request_wiphy && request_wiphy == wiphy && - request_wiphy->flags & WIPHY_FLAG_STRICT_REGULATORY) { -@@ -851,19 +857,12 @@ 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 = -- (int) MBM_TO_DBM(power_rule->max_eirp); - return; - } - - chan->flags = flags | bw_flags | map_regdom_flags(reg_rule->flags); - chan->max_antenna_gain = min(chan->orig_mag, - (int) MBI_TO_DBI(power_rule->max_antenna_gain)); -- if (chan->orig_mpwr) -- chan->max_power = min(chan->orig_mpwr, -- (int) MBM_TO_DBM(power_rule->max_eirp)); -- else -- chan->max_power = (int) MBM_TO_DBM(power_rule->max_eirp); - } - - static void handle_band(struct wiphy *wiphy, |