mac80211: update to version based on 4.19-rc4
[openwrt/staging/wigyori.git] / package / kernel / mac80211 / patches / ath / 365-ath9k-adjust-tx-power-reduction-for-US-regulatory-do.patch
index 78083517bc6d4e313b237befb3045c22097c52e3..cbc2f5ad91d33564f97b273909319cd7235e676c 100644 (file)
@@ -11,7 +11,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
 
 --- a/drivers/net/wireless/ath/ath9k/hw.c
 +++ b/drivers/net/wireless/ath/ath9k/hw.c
-@@ -2954,6 +2954,10 @@ void ath9k_hw_apply_txpower(struct ath_h
+@@ -2981,6 +2981,10 @@ void ath9k_hw_apply_txpower(struct ath_h
        if (ant_gain > max_gain)
                ant_reduction = ant_gain - max_gain;
  
@@ -19,6 +19,6 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
 +      if (reg->region == NL80211_DFS_FCC)
 +              ant_reduction = max_t(int, ant_reduction - 6, 0);
 +
-       ah->eep_ops->set_txpower(ah, chan, ctl, ant_reduction, new_pwr, test);
+       ah->eep_ops->set_txpower(ah, chan, ctl,
+                                ant_reduction, new_pwr, test);
  }