mac80211: ath9k: Increase allowed antenna gain to 6 dBi
[openwrt/staging/blogic.git] / package / kernel / mac80211 / patches / ath / 365-ath9k-adjust-tx-power-reduction-for-US-regulatory-do.patch
index cbc2f5ad91d33564f97b273909319cd7235e676c..363e9aa9a377066bcf71aa40f1612ec078e211b8 100644 (file)
@@ -3,7 +3,7 @@ Date: Wed, 19 Jul 2017 08:49:31 +0200
 Subject: [PATCH] ath9k: adjust tx power reduction for US regulatory
  domain
 
-FCC regulatory rules allow for up to 3 dBi antenna gain. Account for
+FCC regulatory rules allow for up to 6 dBi antenna gain. Account for
 this in the EEPROM based tx power reduction code.
 
 Signed-off-by: Felix Fietkau <nbd@nbd.name>
@@ -15,9 +15,9 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        if (ant_gain > max_gain)
                ant_reduction = ant_gain - max_gain;
  
-+      /* FCC allows maximum antenna gain of 3 dBi */
++      /* FCC allows maximum antenna gain of 6 dBi */
 +      if (reg->region == NL80211_DFS_FCC)
-+              ant_reduction = max_t(int, ant_reduction - 6, 0);
++              ant_reduction = max_t(int, ant_reduction - 12, 0);
 +
        ah->eep_ops->set_txpower(ah, chan, ctl,
                                 ant_reduction, new_pwr, test);