Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1766555rbb; Mon, 26 Feb 2024 23:41:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWzqmbmO2sg3nlLnUyfv/UXQowuXdDwXX8F0simucXzMTh5a73GDhIHWd6HyW3nRta2+5doRPDvjnMTWnR6RUOmiIms5LOrV3+6yTmuCw== X-Google-Smtp-Source: AGHT+IHLSyeS4pWaUmqPZGo2ox5J4ujDIz0aU61j+9DtvLsgVjcgOQiAY4wLR/u91LbC6q3rooVd X-Received: by 2002:a05:6a20:2984:b0:1a0:d8be:55d3 with SMTP id f4-20020a056a20298400b001a0d8be55d3mr1211281pzh.16.1709019715719; Mon, 26 Feb 2024 23:41:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709019715; cv=pass; d=google.com; s=arc-20160816; b=0dztE/e4SHPAm5Myv0C4guTr34Z3L4LA6ImLJJ2IkHpISsALUWh31tYwDnnhWObsar GjO2JrIOnSp4k51BD0B7iQKuwTxiIkIYkG4UBhSNj0RGJ2xy4FQZ+Dl4tkw2lykIE8Hx Yqkt4bY4Rt1IcUD5GCBwuKRWBc5j1SdUllUHOa8KtQ1/H3MMhLG4LljK0hXqyhzB7njI w1zNRfMuxJSzauaNorC+jTRsHFFGuppSHfnpR7SvDPdISDoWOiPLwbJfZhlXvXdYnXVQ AAUzX5icA2yV8InoVXcVrI2/pqy6hPw+vtGr1sWEGac1kWT+4wLDkJT4mgarwW/YwvQ+ 7eyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=Ddim0juEYH9dYsDYFVcggUBT7rEqhWT1XS3J5aa+pGY=; fh=AhgIfFTdBIzhhHSzo7mUL3qgD3uH79i1FfvDyhXU7ks=; b=EPiOwODWZ3PUPUAZs0vFPoFoDZEJAvrqz3Hbtjbt17hLp+1NCcKMZRwHQCX5nSE1cR cH/3Ryg3xrGMeUSM3pab6XpZjWvlFaunVAhBav2Llrm/+MFhj+pbLjLTHy+sabxSDxSZ 7pMzNUgI1YY9hxWzREdjrUc6Dq7clTxxOHHV+FUo498xPn2sK/WcB4tE+uRtIUZcSw6C A5xSADoGtoVWfBlWT3/btNQX0DVT9Xy7s+t5q9zczKxCuGBIZX0Gm3syWzdD6cAW179Z 3vJxz1KBjFLLq7hgkp4qehbzaygqJ7E7JA65ToQK/KLTZUedIX5rB6ovQ6Oif5sVItiX F3yg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=sOntOl1t; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-4059-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z18-20020a1709028f9200b001dc6235019asi932056plo.574.2024.02.26.23.41.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 23:41:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4059-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=sOntOl1t; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-4059-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 86208287975 for ; Tue, 27 Feb 2024 07:32:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D31054776; Tue, 27 Feb 2024 07:32:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="sOntOl1t" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FBF25465C for ; Tue, 27 Feb 2024 07:32:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709019176; cv=none; b=b7Q3G7cnoYeAZQF3Ouh83zJHv+MRrej/g8RS+5ODEeBW6V081fNnutkS7vb6gSNL2dL2mDtsBywEXRaVb52nrTBenBRByph1GW7Du5q5mowG5uxe0AgcWZgDKGb44WiNU51lrzP3dX+dK2mSAq91eVRAbuvJuW6b7GXN1JB63OA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709019176; c=relaxed/simple; bh=we4iIof7ubR2V8Vz2TCc15JGiUi21UUfmA3W6qPGWUI=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=TWnz/3GMSwotQqJ59LGfJJwvbKS7T+3SY6U23huIJoyTNVSHVKoxJpfwsrKao2dyuQc386Zc9SJplb+ifnoZfM7jY5Ss5JSkaHSfnvqsHMXoZEJ/sZcsrdG2uM+eCyzjupcxZZrXhQA6KVEmMx3/VkbVsssmjwbQzxvThuQgZmI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=sOntOl1t; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net 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=Ddim0juEYH9dYsDYFVcggUBT7rEqhWT1XS3J5aa+pGY=; t=1709019173; x=1710228773; b=sOntOl1t8nnJgWcejlPiK2nHhU37iEG9rUrb7h79JLylGm8 j0qngOXvqrve5GYEOHa5U+6rAIjS7y5VDN4ZuQz1e+tjMtPXn9r7IUlRyaYSLU/HqIk4DmEeGwBGz t1PV/Rgl76PMJ3v7sZf7coToqcx976l+xI6UurNBJD9GLCz6lIaflw+LG9Jh093Bthjp8zpAIDtY/ KKKzzB7SVvurvVNUqEXwqdK0GG3ACmswnepJwPNEsfV4TZ1g5hmFQSKG+4nbViibfmvSl8WOJZI+t d1EkdsCsBbumrxT5CqF7VYj/DV8LZaYEzELWuvdrEfUOnVKvQq0ED4m6AoprLCDQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rerxJ-0000000AUNd-39S9; Tue, 27 Feb 2024 08:32:49 +0100 Message-ID: <5c5ad99d3c2f3b9915b440057eab6618639cd31f.camel@sipsolutions.net> Subject: Re: [PATCH 2/6] wifi: ath11k: add P2P IE in beacon template From: Johannes Berg To: Kang Yang , Jeff Johnson , ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org Date: Tue, 27 Feb 2024 08:32:48 +0100 In-Reply-To: References: <20240226060203.2040444-1-quic_kangyang@quicinc.com> <20240226060203.2040444-3-quic_kangyang@quicinc.com> <42652a06-33f3-445a-bd8a-da4633fa52f8@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Tue, 2024-02-27 at 14:58 +0800, Kang Yang wrote: >=20 > > > + if (arvif->vif->type !=3D NL80211_IFTYPE_AP || !arvif->vif->p2p) > >=20 > > this logic isn't applicable for NL80211_IFTYPE_P2P_GO ? >=20 > The original intention here is to determine if it is P2P GO, if yes,=20 > continue, otherwise return. >=20 >=20 > Maybe this judgment is a bit misleading, let me replace with > if (arvif->vdev_subtype !=3D WMI_VDEV_SUBTYPE_P2P_GO) ? There's also ieee80211_vif_type_p2p(arvif->vif) !=3D NL80211_IFTYPE_P2P_GO if you wanted to write it that way. @Jeff: NL80211_IFTYPE_P2P_GO is not used by mac80211 internally, it translates that to vif->type=3D=3DNL80211_IFTYPE_AP && vif->p2p=3D=3Dtrue. johannes