From: Ben Greear Date: Thu, 10 Oct 2024 20:40:36 +0000 (-0700) Subject: mac80211: Remove NOP call to ieee80211_hw_config X-Git-Tag: v6.13-rc1~135^2~195^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eaed5fc0c322d75cfcdbc7a16c0c5023d9e4f6fe;p=thirdparty%2Fkernel%2Flinux.git mac80211: Remove NOP call to ieee80211_hw_config 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 Link: https://patch.msgid.link/20241010204036.1219896-1-greearb@candelatech.com Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 57f6fac343eba..a8fbedd530f45 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -67,7 +67,6 @@ bool __ieee80211_recalc_txpower(struct ieee80211_link_data *link) if (power != link->conf->txpower) { link->conf->txpower = power; - ieee80211_hw_config(link->sdata->local, 0); return true; }