refresh patches
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user