aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-10 13:51:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-12-10 13:51:09 +0000
commitcb9c63048dbe8f50ec6cbda1cf3a9a6e26976b34 (patch)
tree9e53406cffebb561e8bcb67851e7e4da8af3fcd8 /package
parent01513b7c8b5f1a85bfe2e6a3fab0bf7d16b5510a (diff)
downloadupstream-cb9c63048dbe8f50ec6cbda1cf3a9a6e26976b34.tar.gz
upstream-cb9c63048dbe8f50ec6cbda1cf3a9a6e26976b34.tar.bz2
upstream-cb9c63048dbe8f50ec6cbda1cf3a9a6e26976b34.zip
mac80211: fix setting txpower (#12594)
SVN-Revision: 34594
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/523-mac80211_configure_antenna_gain.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mac80211/patches/523-mac80211_configure_antenna_gain.patch b/package/mac80211/patches/523-mac80211_configure_antenna_gain.patch
index 010fe6cad1..9760b054c9 100644
--- a/package/mac80211/patches/523-mac80211_configure_antenna_gain.patch
+++ b/package/mac80211/patches/523-mac80211_configure_antenna_gain.patch
@@ -142,9 +142,9 @@
+ ant_gain = 0;
+ } else
+ ant_gain -= local->user_antenna_gain;
++ power = min(power, max_power);
+ }
+
-+ power = min(chan->max_power, max_power);
+ if (local->hw.conf.power_level != power ||
+ local->hw.conf.max_antenna_gain != ant_gain) {
changed |= IEEE80211_CONF_CHANGE_POWER;