From cb9c63048dbe8f50ec6cbda1cf3a9a6e26976b34 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 10 Dec 2012 13:51:09 +0000 Subject: [PATCH] mac80211: fix setting txpower (#12594) SVN-Revision: 34594 --- .../mac80211/patches/523-mac80211_configure_antenna_gain.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/mac80211/patches/523-mac80211_configure_antenna_gain.patch b/package/mac80211/patches/523-mac80211_configure_antenna_gain.patch index 010fe6cad19..9760b054c90 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;