diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-12-10 13:51:09 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-12-10 13:51:09 +0000 |
commit | f7a9482416ccb4faf22ef1b1a584046d46788a27 (patch) | |
tree | cb0583eee7f20bd31d925a880a0fb2f48cbafad5 /package/mac80211/patches | |
parent | b418474e2730e2c41ed6088c682ae31808717e7c (diff) | |
download | upstream-f7a9482416ccb4faf22ef1b1a584046d46788a27.tar.gz upstream-f7a9482416ccb4faf22ef1b1a584046d46788a27.tar.bz2 upstream-f7a9482416ccb4faf22ef1b1a584046d46788a27.zip |
mac80211: fix setting txpower (#12594)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34594 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r-- | package/mac80211/patches/523-mac80211_configure_antenna_gain.patch | 2 |
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; |