mac80211: fix tx power regression
[openwrt/staging/jow.git] / package / kernel / mac80211 / patches / 315-ath9k-adjust-tx-power-reduction-for-US-regulatory-do.patch
index 59e4ddee3eb0b2adbf5cbe4da6ace28d4152834d..78083517bc6d4e313b237befb3045c22097c52e3 100644 (file)
@@ -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);
  }