From patchwork Wed Mar 8 23:41:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Greear X-Patchwork-Id: 661022 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DCACC6FD19 for ; Wed, 8 Mar 2023 23:42:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbjCHXmq (ORCPT ); Wed, 8 Mar 2023 18:42:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230288AbjCHXmY (ORCPT ); Wed, 8 Mar 2023 18:42:24 -0500 Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C37CD5BD8A for ; Wed, 8 Mar 2023 15:42:03 -0800 (PST) X-Virus-Scanned: Proofpoint Essentials engine Received: from mail3.candelatech.com (mail2.candelatech.com [208.74.158.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id EA713240077 for ; Wed, 8 Mar 2023 23:42:01 +0000 (UTC) Received: from ben-dt5.candelatech.com (50-251-239-81-static.hfc.comcastbusiness.net [50.251.239.81]) by mail3.candelatech.com (Postfix) with ESMTP id 83A8513C2B0; Wed, 8 Mar 2023 15:42:01 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 83A8513C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1678318921; bh=Fi0MObjATFjdljXhswMZaeM1bhfWIWoMMepV7RA5uaI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sRKCWfMFwoLOukrfJqUdGoUkQOsGYkVzaTDMpkNtAvxGp+VaClOVZ3t6Q2AQeHlpR e/s+uPOU+4uLuTWaibiSscxeC8ov8ixKXs6pIdzgY6dm8TGSSHUCjPUtq6PawMTTNv z5898PIFyEfSDFCEBzpIPgg40Bg9c+p+z5UdN/RQ= From: greearb@candelatech.com To: linux-wireless@vger.kernel.org Cc: Ben Greear Subject: [PATCH v2 2/2] wireless: mac80211: fix ath10k wave-2 in 80mhz mode in config_bw logic. Date: Wed, 8 Mar 2023 15:41:58 -0800 Message-Id: <20230308234158.2732682-2-greearb@candelatech.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230308234158.2732682-1-greearb@candelatech.com> References: <20230308234158.2732682-1-greearb@candelatech.com> MIME-Version: 1.0 X-MDID: 1678318922-XiDAVATx-mBL X-MDID-O: us5;ut7;1678318922;XiDAVATx-mBL; Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ben Greear It was complaining about the 'DISABLE_HE' flag mismatch, so ensure that if ifmgd has DISABLE_HE set, then 'flags' also will have that flag set. Signed-off-by: Ben Greear --- net/mac80211/mlme.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 0efca23be69b..827d61c2dd1b 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -505,6 +505,10 @@ static int ieee80211_config_bw(struct ieee80211_link_data *link, chandef.width != NL80211_CHAN_WIDTH_80P80) flags |= IEEE80211_CONN_DISABLE_80P80MHZ; + /* if ifmgd has HE disabled, then we cannot re-enable that here. */ + if (link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HE) + flags |= IEEE80211_CONN_DISABLE_HE; + if (cfg80211_chandef_identical(&chandef, &link->conf->chandef)) return 0;