1
0

refresh patches

This commit is contained in:
2025-03-27 01:51:30 +03:00
parent 3d597650a9
commit b65c570ac2
239 changed files with 14214 additions and 9267 deletions

View File

@@ -21,12 +21,12 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -62,7 +62,8 @@ bool __ieee80211_recalc_txpower(struct i
if (sdata->deflink.user_power_level != IEEE80211_UNSET_POWER_LEVEL)
power = min(power, sdata->deflink.user_power_level);
if (link->user_power_level != IEEE80211_UNSET_POWER_LEVEL)
power = min(power, link->user_power_level);
- if (sdata->deflink.ap_power_level != IEEE80211_UNSET_POWER_LEVEL)
+ if (sdata->deflink.ap_power_level != IEEE80211_UNSET_POWER_LEVEL &&
+ sdata->vif.bss_conf.txpower_type != NL80211_TX_POWER_FIXED)
power = min(power, sdata->deflink.ap_power_level);
- if (link->ap_power_level != IEEE80211_UNSET_POWER_LEVEL)
+ if (link->ap_power_level != IEEE80211_UNSET_POWER_LEVEL &&
+ link->conf->txpower_type != NL80211_TX_POWER_FIXED)
power = min(power, link->ap_power_level);
if (power != sdata->vif.bss_conf.txpower) {
if (power != link->conf->txpower) {