From: Felix Fietkau Date: Fri, 13 Oct 2017 18:27:33 +0000 (+0200) Subject: mac80211: fix tx power regression X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5bd006aa2689d1ec813936b13eb1eb85ef4a0ab8;p=librecmc%2Flibrecmc.git mac80211: fix tx power regression Revert an accidental change that was introduced by having an old version of the patch in my git tree, which was merged in 609208597b6d Signed-off-by: Felix Fietkau --- diff --git a/package/kernel/mac80211/patches/315-ath9k-adjust-tx-power-reduction-for-US-regulatory-do.patch b/package/kernel/mac80211/patches/315-ath9k-adjust-tx-power-reduction-for-US-regulatory-do.patch index 59e4ddee3e..78083517bc 100644 --- a/package/kernel/mac80211/patches/315-ath9k-adjust-tx-power-reduction-for-US-regulatory-do.patch +++ b/package/kernel/mac80211/patches/315-ath9k-adjust-tx-power-reduction-for-US-regulatory-do.patch @@ -17,7 +17,7 @@ Signed-off-by: Felix Fietkau + /* FCC allows maximum antenna gain of 3 dBi */ + if (reg->region == NL80211_DFS_FCC) -+ ant_reduction = min_t(int, ant_reduction - 6, 0); ++ ant_reduction = max_t(int, ant_reduction - 6, 0); + ah->eep_ops->set_txpower(ah, chan, ctl, ant_reduction, new_pwr, test); }