diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-10-13 20:27:33 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-10-13 20:28:47 +0200 |
commit | 5bd006aa2689d1ec813936b13eb1eb85ef4a0ab8 (patch) | |
tree | bd914f2865e51b294acb0fa9bb0704235641cdeb /package/kernel/mac80211 | |
parent | 7ffb707576e8c635321275e9f118c8ad27d4c798 (diff) | |
download | mtk-20170518-5bd006aa2689d1ec813936b13eb1eb85ef4a0ab8.zip mtk-20170518-5bd006aa2689d1ec813936b13eb1eb85ef4a0ab8.tar.gz mtk-20170518-5bd006aa2689d1ec813936b13eb1eb85ef4a0ab8.tar.bz2 |
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 <nbd@nbd.name>
Diffstat (limited to 'package/kernel/mac80211')
-rw-r--r-- | package/kernel/mac80211/patches/315-ath9k-adjust-tx-power-reduction-for-US-regulatory-do.patch | 2 |
1 files changed, 1 insertions, 1 deletions
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 59e4dde..7808351 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 <nbd@nbd.name> + /* 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); } |