Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1811213rdh; Tue, 26 Sep 2023 04:30:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEfgvc2AZuv7oTCzTllltOXGw1kSSFQrKvyCyrutVkOGvhZYt5qDVKiU5nP/4gWyRWfprBf X-Received: by 2002:a05:6358:9914:b0:139:db34:240b with SMTP id w20-20020a056358991400b00139db34240bmr11833619rwa.8.1695727831570; Tue, 26 Sep 2023 04:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695727831; cv=none; d=google.com; s=arc-20160816; b=zux9fveMya8kjfVZ3iSSShWH1hDyh0F6VwwqH3oCwLboT1mrlSEheg2wOVi4tKNnGs hK5FoBWx2qae3EcNNIyT1VFFKK4/30kfb+JHoJlhgAdrZ/Z0PoRUIBdJQUKESV1CgKI/ dsIQYHMZLikr+SYk8jSzEOBxgRxnq+zsX1XIf8NiekCbOeg6IOHhtwXi3iOgqn1Y9fiz d+l/Adg9pOOlODhj8nyDPDTVXf7O51I40GrGUybDYGExtKtJFzwTmyCbPR3JYB7lUqil BR2r/LdPv98j8DK5RAyDDjPynm/fdaTjxDG8H9XhOKx5Pd8UNJfCslaQwzk5R9WjKqC5 fAFw== 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:cc:to:from :subject:message-id:dkim-signature; bh=Y+/vL/8oN97i0mNFQgOviFMY8YQRqWnmHAvN5eOx1co=; fh=bw6avefgSegYlwFXr64kEWRwtk1wWqyjry+z2hs7lZY=; b=J+5r07cjMPzQQjLh2NFw6/Fkp9e3akAQaSx3D3/SJJLv05jbcruoU0TGxD8PAuTJds pxjIBhVJ6rixltQxIahOUR5SlHaJbbxx48p17jeKt8DSV/ZP/fxTylQbvGyWhxqkTmAD 6e2rrC1a0hlX8UqFZKSRu6Z+0+XMbyuz9JIfLdNPezPzEcNNAxycEluvGww+WCPyK2jO y0TJ2g15JolxXFJVzkXSdb+kJsEuHVgc4ANFjFOXMNhXOuB6uNcNPehtpSxOmyVS9eW5 pYn+0jyqECEsrNJir5iKl5znbDXidPY3Wx5qlKGyofAGSRMUQ9eA2b5/5ZmYQpXqVrN9 qqjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=swA+NrMR; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h187-20020a636cc4000000b00578af6c5c0csi11861278pgc.235.2023.09.26.04.30.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 04:30:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=swA+NrMR; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 16AF480755E2; Sat, 23 Sep 2023 13:21:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229509AbjIWUJK (ORCPT + 56 others); Sat, 23 Sep 2023 16:09:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjIWUJK (ORCPT ); Sat, 23 Sep 2023 16:09:10 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E179113 for ; Sat, 23 Sep 2023 13:09:03 -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:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=Y+/vL/8oN97i0mNFQgOviFMY8YQRqWnmHAvN5eOx1co=; t=1695499743; x=1696709343; b=swA+NrMR9pTHBH3WAA9fdF2JQqgNxurDwfGoj+jffEPtDtq CpCM+EyqC1IbcWZe4IRdiC2HwCLIP4/0If7o9sNJkHkUKiM0BX5D8hZxtRH9I/2mS6ro8xTHqhrM9 QaNMQI/6kiKgAY0lIylGwPYLG/zKfBmRYO+CTwkwJe1VvQ9UC2M7YVhNVWlKyec7qCXAjdXmRoPb0 d0NRIAPnjwHl+qVxZs1HyMyG2wlXW10bcJJTKtVklxdoy3XGstDrdg54k1/pPHsRKFX57nTMygoSJ WDfo92A5aOG/FWCt2HL8JHEWC+9EauMzrZP8X4yFaAFEmoFaGbKuuJI5Ux8YZuHg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qk8vx-0006ha-2V; Sat, 23 Sep 2023 22:08:57 +0200 Message-ID: <75b4b34f9e49e1af2fac5fdf8a1d022f8b0b2d5f.camel@sipsolutions.net> Subject: Re: [PATCH] wifi: ath11k: mac: fix struct ieee80211_sband_iftype_data handling From: Johannes Berg To: Kalle Valo , ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org Date: Sat, 23 Sep 2023 22:08:56 +0200 In-Reply-To: <87ediqa674.fsf@kernel.org> References: <20230921075440.1539515-1-kvalo@kernel.org> <87ediqa674.fsf@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 23 Sep 2023 13:21:48 -0700 (PDT) On Fri, 2023-09-22 at 12:49 +0300, Kalle Valo wrote: >=20 > > + if (iftd->types_mask & BIT(arvif->vif->type)) { >=20 > Johannes pointed out that I should use ieee80211_get_he_iftype_cap_vif() > instead. I'll submit v2. And I'll note that it's not just because it saves open-coding it, also the BIT(vif->type) in mac80211 will be wrong because it's always STATION even for P2P-Client, so you need to add the vif->p2p bit in. We maybe shouldn't have done that ... but it seemed kinda nicer at the time to treat them both the same except in special cases. johannes