diff mbox series

mac80211: Remove NOP call to ieee80211_hw_config

Message ID 20241010204036.1219896-1-greearb@candelatech.com
State New
Headers show
Series mac80211: Remove NOP call to ieee80211_hw_config | expand

Commit Message

Ben Greear Oct. 10, 2024, 8:40 p.m. UTC
From: Ben Greear <greearb@candelatech.com>

If changed is '0', then the ieee80211_hw_config takes no
action, so just remove the call in
__ieee809211_recalc_txpower()

Signed-off-by: Ben Greear <greearb@candelatech.com>
---
 net/mac80211/iface.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 566edad36b0a..88e9e19d34ea 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -70,7 +70,6 @@  bool __ieee80211_recalc_txpower(struct ieee80211_sub_if_data *sdata)
 
 	if (power != sdata->vif.bss_conf.txpower) {
 		sdata->vif.bss_conf.txpower = power;
-		ieee80211_hw_config(sdata->local, 0);
 		return true;
 	}