mirror of https://github.com/hak5/openwrt-owl.git
ath9k: fix typo in US tx power reduction fix
Use max_t instead of min_t to prevent the value from going below zero Signed-off-by: Felix Fietkau <nbd@nbd.name>owl
parent
9e64874fb2
commit
35868234e7
|
@ -16,7 +16,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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue