From patchwork Thu Oct 10 20:40:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Greear X-Patchwork-Id: 13831090 X-Patchwork-Delegate: johannes@sipsolutions.net Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 858FC1E1A1F for ; Thu, 10 Oct 2024 20:40:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.129.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728592850; cv=none; b=BnfeU1u+XLYd3uzauvhxwmFxolJxeXyh1o7lGnePFdY4QgJ4EoNsHrCkqPAqzOv/YopkzL5hWYGTRYKZStcY/8j9tAhv8BZxxc+USnfdxfLRBxxjaOB6IlkNoXrgVH3cF6MeeTtPF9cuEK4FVKTsPFtsH0W31h243gAeH0Di+lQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728592850; c=relaxed/simple; bh=qVtjUSQ1xu/BPA2PBbE9BH+knZcLmyQ6Vef8HF7XOZA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EylpucaYvo3UZeIWeL25d2V2UAyLuMzLV/04UEgtxFzwkAZSQbjTIAoefCZbeIjyWbZs1Ew6suORtI/nIyWLD5RvLtY5+yr1TA9JZfS/F6Iw6ED9ttjNG7VOSA98RLJqZeVlRFKUIjOZJe9s0dbSFwDElmfvMp/eGjKDtQEG2qU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=candelatech.com; spf=pass smtp.mailfrom=candelatech.com; dkim=pass (1024-bit key) header.d=candelatech.com header.i=@candelatech.com header.b=T9NZxnir; arc=none smtp.client-ip=148.163.129.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=candelatech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=candelatech.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=candelatech.com header.i=@candelatech.com header.b="T9NZxnir" X-Virus-Scanned: Proofpoint Essentials engine Received: from mail3.candelatech.com (mail.candelatech.com [208.74.158.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 674CBC40077 for ; Thu, 10 Oct 2024 20:40:41 +0000 (UTC) Received: from ben-dt5.candelatech.com (unknown [50.251.239.81]) by mail3.candelatech.com (Postfix) with ESMTP id D86AE13C2B0; Thu, 10 Oct 2024 13:40:40 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com D86AE13C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1728592841; bh=qVtjUSQ1xu/BPA2PBbE9BH+knZcLmyQ6Vef8HF7XOZA=; h=From:To:Cc:Subject:Date:From; b=T9NZxnira1ejDUaKwMjYKYl61jVNSZQWkutwt48UAWIN4Y7OBcpk+txWzDYrqT6+T YswrQ7ywKbGDzjjpjsJ4shW18TcOcEOL3sj7zdGeCpuSg/0K46FCt6BeIXn3KHNQ8L pA1J06rAgiLVskjRRj1aKYO/gBLIXASN72dGNyl4= From: greearb@candelatech.com To: linux-wireless@vger.kernel.org Cc: Ben Greear Subject: [PATCH] mac80211: Remove NOP call to ieee80211_hw_config Date: Thu, 10 Oct 2024 13:40:36 -0700 Message-ID: <20241010204036.1219896-1-greearb@candelatech.com> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MDID: 1728592842-LSo_LNB1bJm2 X-MDID-O: us5;ut7;1728592842;LSo_LNB1bJm2;;f7146c1849a4b08a52804beb1c1cdf45 X-PPE-TRUSTED: V=1;DIR=OUT; From: Ben Greear 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 --- net/mac80211/iface.c | 1 - 1 file changed, 1 deletion(-) 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; }