Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp570926rwb; Tue, 27 Sep 2022 01:17:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4w0RfWKwO7fnwplxSo7b6htSEy3PTwZYy05TpGYh8GKYStGG7P0+GPngKFKUSo1Vm5dAnw X-Received: by 2002:a17:90a:e644:b0:200:2f9a:bd0a with SMTP id ep4-20020a17090ae64400b002002f9abd0amr3239404pjb.88.1664266670857; Tue, 27 Sep 2022 01:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664266670; cv=none; d=google.com; s=arc-20160816; b=JV2JgPaD78ya6c1IPgF2hmMm3eDGgUjWyBRZNUqOcPxEjcXYwCxOzlkvS4mQLcO8GC v0Km+JGG17Uh51BH38Xtk/pkz2Owkk6J6QxY9PwA7wsoeaWAcchDAmz+b4lIcDFKjYC3 ngh1n7mb4FgY1YJng9ufgiVdhS8cq8WDgblEqo931voGIGb0YgBj9RQzueySTPcVpDsR PKi7uToM85FibxXm04ltWj/wlxQ+raJ9CREzsa4+lt3RCPBbT3uGV1H3U+hOTY0jKo/C 6SMxMOrvqZp5mVltylfyFAjiMsSeRWm1gwreBqRv8ut/EupjIzLAPxihIXiFPKHg0/CU ZxfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:dkim-signature; bh=lt58T8OIMugiOR5UFYQcfSir1o5soBodFGO73dakSh0=; b=XSO9yc7BFgVISAxu3qZhvGrHsQfLDYXAXDIxtrzF6IABR/xEAtsBloL8qgXpMgDJWq kccK1eQG2xsMvttooem95ZuQPAfOuikI+JIb6XPW0/NRiWJq9SS4GTPnBce8CDE0G+i6 SeaxK1dfAH/azAEVpYCor+dr8TJGqDxVVS4j86ezzznKm5ey/VFgsJZIRcal1Yh/NbVx 16wkiBEr4mdO8ozpJ0ZbDn5V3MRoj0CcNoSI2Rid249wDCKmE3nc3AuetLKSPxE5/u1p 2mW8lO19VMh4716eHuMYO0kluiiJuT9vOaJf8nt0OaIEn0sMuFuqTkl6DDwqwgJaM20f 1Kcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="bPcA/HHf"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e26-20020a65689a000000b0043c2621ee86si1129803pgt.494.2022.09.27.01.17.39; Tue, 27 Sep 2022 01:17:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="bPcA/HHf"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229608AbiI0IRP (ORCPT + 61 others); Tue, 27 Sep 2022 04:17:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230418AbiI0IQ5 (ORCPT ); Tue, 27 Sep 2022 04:16:57 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 125CB88A3D for ; Tue, 27 Sep 2022 01:16:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:To:From:Subject:Message-ID:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=lt58T8OIMugiOR5UFYQcfSir1o5soBodFGO73dakSh0=; t=1664266562; x=1665476162; b=bPcA/HHf9oPpdgnY+n0GkSC3XqtXhf766STHHw26qr5zkRE GmQG6VYzWbQX4bIrIoDEVxaFpewJ61PyPETtSVMrAr/M75ENjoiPIUWRqnLytlB0hkt0VZPBOg/vC 6+/FB752Xi5wNryH5gdqZC3N3SMPUvfTbx3ArJ4e+TnrbpadCC/XRyt+pN4yBMoRqm+0nQXEDy6AK CFS+Us6DDRsEeqlV+gKxCGbasDDaV/CRVCIqaPn5j+MQTpYaFd/CczuqNJzxOP5Ai7Q/r+k4tSv0Y OgH+wgqROBHZE+QYzus85sicX24o/DOXkKzH30ZW4k2K6ZQx0tMe64Jk6lXeHn1g==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1od5l0-009VW6-0R; Tue, 27 Sep 2022 10:15:58 +0200 Message-ID: <3cd8fab9b36f5a263dfa0fa41d5dd827c3ea18e2.camel@sipsolutions.net> Subject: Re: [PATCH 35/76] wifi: mac80211: mlme: use ieee80211_get_link_sband() From: Johannes Berg To: Wen Gong , linux-wireless@vger.kernel.org Date: Tue, 27 Sep 2022 10:15:57 +0200 In-Reply-To: <509e18bd-3004-9db5-459c-1935ee4eba5f@quicinc.com> References: <20220713094502.163926-1-johannes@sipsolutions.net> <20220713114425.35973aa556f0.I1394dd82298f09c6cb452be538dba8ba13f11b01@changeid> <509e18bd-3004-9db5-459c-1935ee4eba5f@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-1.fc36) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, 2022-09-14 at 18:00 +0800, Wen Gong wrote: > On 7/13/2022 5:44 PM, Johannes Berg wrote: > > From: Johannes Berg > >=20 > > This requires a few more changes. > >=20 > > While at it, also add a warning to ieee80211_get_sband() > > to avoid it being used when there are multiple links. > >=20 > > Signed-off-by: Johannes Berg > > --- > > net/mac80211/ieee80211_i.h | 2 ++ > > net/mac80211/mlme.c | 12 ++++++------ > > 2 files changed, 8 insertions(+), 6 deletions(-) > >=20 > > diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h > > index 3e360bcaa03b..a0743c78d171 100644 > > --- a/net/mac80211/ieee80211_i.h > > +++ b/net/mac80211/ieee80211_i.h > > @@ -1539,6 +1539,8 @@ ieee80211_get_sband(struct ieee80211_sub_if_data = *sdata) > > struct ieee80211_chanctx_conf *chanctx_conf; > > enum nl80211_band band; > > =20 > > + WARN_ON(sdata->vif.valid_links); > > + > > rcu_read_lock(); > > chanctx_conf =3D rcu_dereference(sdata->vif.bss_conf.chanctx_conf); > > =20 > Hi Johannes, >=20 > Now I hit below warning here in ieee80211_get_sband() in my MLO test for= =20 > station. > Will you have more patch to fix the warning? >=20 Yeah still working on all this, obviously ... That should be fairly harmless for now, unless you're trying to use 1k block-ack. johannes