Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp34370rdb; Wed, 18 Oct 2023 17:11:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDyGdrNwBQV4MeECqMrpWe4z9doT7QXw95hyr/9ATgel9JVBy6kMgXMgAvEkxayE6L/IVt X-Received: by 2002:a05:6870:b520:b0:1e9:e605:279b with SMTP id v32-20020a056870b52000b001e9e605279bmr1066325oap.19.1697674263815; Wed, 18 Oct 2023 17:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697674263; cv=none; d=google.com; s=arc-20160816; b=O2wWX84YFC4qJwEkIR2vmaY8eDxzhTbQzWo+JG7s8np1Pg4vnuuguTzy4HQ0x2beLt IlIxeMQz/LKasgi33QeqVCkkPoqDx25SjPdZWdxIF4zwW72KTvHiTJ2DoF3uDnBy9cbe 9MAL0RFs/ozSrDYSJ4NKQWfVoMkG3K5uk5ciGrZB4xwk6ZFd/D8vIIxvsA2SYyF82T+H setJ5EaNmm1R3EJWt3E6NRZdqWfZhpA37hli9omkDY4xgO+BoC9Vs3gRxJkijiEPq0XP T/TGiGr039EiY1QNh30QaZRk2VaArZZmor9/a8znQmZnxUCLtB2viNcRGdbZ0bGeFu5S ekCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=uEQ1DigX90yviPUZfcfiwxQnoke0yWibWMPW4nd9qMQ=; fh=YkMOKVfsudgatxfgecOlInd0Yk99Y8aksBHoW5kR3x8=; b=kXoDWmPJt48axARRs6d9olgRz7/UEf7aDpeMdPcr0afgZixPNn52Q3KUL9P9o3AonJ nfohEGmBxmLbEfyfnoq42R0Q8ShdPYyuFfVm/FwWEWz9+SFL/V9OKZyelFr9sgbe9TqY XuRl63OTcvkyQeFfgTxPWRdlTVROMqNaoPr2geYFOdWtTRD3mxuAjr4CDrULMnbtqWlJ 7TRWCfeH1+no+Qg8QlWGyEI7uv+cAQMnTmILwsfS6Y4MEQjBP7air1QpncTFHo4GAZql PV0fQJNKzSuuLIwsBMIgKKhbdR+YomYGphbvJCdRJ7/ZtgU46GfFES7hgtkiryuA6J5Z Gd/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bFlWVS+4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id j70-20020a638049000000b0057c24bae994si3265503pgd.355.2023.10.18.17.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 17:11:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bFlWVS+4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 1447F8258FD6; Wed, 18 Oct 2023 17:10:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229744AbjJSAKK (ORCPT + 52 others); Wed, 18 Oct 2023 20:10:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjJSAKJ (ORCPT ); Wed, 18 Oct 2023 20:10:09 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14255FA for ; Wed, 18 Oct 2023 17:10:06 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39INwdeF014116; Thu, 19 Oct 2023 00:10:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=uEQ1DigX90yviPUZfcfiwxQnoke0yWibWMPW4nd9qMQ=; b=bFlWVS+4ybPNOKbdk8W0csJ6S3lCdQgnv1zysGtoD5A9y0n9rZvA6pxcXRKbbH1uM8Da 3nokblgeyaGgszUQzHUnZyhZoyn66G+s5otdw9anKtDTLnTAEr0FFIb1Ut5//KwllpuI QdYwMwMerFs/8tdLarxWqCkFV5N48lJSs9SGJrJhSuNYBe+O8pZjXzpyztHDajxER6Pp NzasmnisyuS+blc4kO1uV8ZIm8J+zm2gpXqdjUiU/XzJn9BO6wkhXu3vQBXovmWmi7D4 x5zQkJFEQmbjdCcymryGtifCdZZb49zj/zA7F8Jyl1wD8ML2HjkA/qhDNkAg90IVYQ8Q 4Q== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ttb7aj30h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Oct 2023 00:10:03 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39J0A2QP024332 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Oct 2023 00:10:02 GMT Received: from [10.227.109.178] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Wed, 18 Oct 2023 17:10:01 -0700 Message-ID: <587c4a25-4977-b2d7-a587-f2a742105a43@quicinc.com> Date: Wed, 18 Oct 2023 17:09:58 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] cfg80211: validate RU puncturing bitmap To: Johannes Berg , References: <20220214223051.3610-1-quic_alokad@quicinc.com> <20220214223051.3610-3-quic_alokad@quicinc.com> <6cf56be5-16d6-2bcd-150f-bf29f98b7f1b@quicinc.com> <58fdd62041c0388740cabea5a421c5417f959124.camel@sipsolutions.net> <9fd4a3097e078c1fe2acd5fbd0c559b0390daa49.camel@sipsolutions.net> <460cb443-868c-ec05-7aec-5b1eee381ae2@quicinc.com> <28b099e7a37824f0b59ab824e67b3437485e45d5.camel@sipsolutions.net> Content-Language: en-US From: Aloka Dixit In-Reply-To: <28b099e7a37824f0b59ab824e67b3437485e45d5.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: xg-dCcXHvQgYEJfbgq73NnKgDcd7fuDe X-Proofpoint-GUID: xg-dCcXHvQgYEJfbgq73NnKgDcd7fuDe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-18_18,2023-10-18_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 spamscore=0 suspectscore=0 clxscore=1015 mlxlogscore=999 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310180199 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Wed, 18 Oct 2023 17:10:11 -0700 (PDT) On 10/18/2023 5:58 AM, Johannes Berg wrote: > > Are you thinking about (separately?) configuring the OFDMA puncturing? > Which spec-wise you do per PPDU, controlled by the AP (trigger frame), I > think? > Need to study the spec again so not any time soon. Will send a new series if it is needed. > >>> 1. The DSP/radio can receive punctured PPDUs if listening on the non >>> punctured channel. >>> >>> At least for our device that's not true, not sure about ath12k? It >>> seems you have a per-peer puncturing configuration even, but that >>> seems odd, and it's always just set to the vif puncturing >>> configuration. >>> >> >> Yes, same vif puncturing pattern is assigned for all the peers >> associated on that vif, but firmware requires it to be sent separately >> for each peer. > > OK, thanks. > > What if it differs for different vifs? > So far that use-case hasn't come up but I'm confirming if we really need that support or not. Will get back you. > >> The main reason to put in chandef was that I thought of the bitmap as a >> radio characteristic (not vif). > > Right. > >> But after you brought up that AP+STA >> mode can have different bitmaps, even though all other channel >> characteristics (width, cf etc) are same, I realized my original >> assumption wrong incorrect. > > So I convinced you, I guess, but what I'm saying is that - at least as > far as our hardware is concerned - I was wrong! > > Thing is: you're not just transmitting with this bitmap, you're also > listening - for both CCA and RX - in a specific way. And at least the > way our hardware works, we apparently can't do puncturing just based on > the preamble, and can't do CCA depending on the next frame. > > So that means the (non-OFDMA) puncturing bitmap *does* in fact become a > radio characteristic. > Got it. > >> Now if you move it back into chandef, how exactly will this work if you >> need different bitmaps? > > You'd get two chanctx since it's not compatible, unless we define some > extra callback or hw flags to determine what's treated as compatible and > what isn't. But see above - I actually want that, now that I know how > the HW works :) > >>> B. How does ath12k cope #1/#2 above? Would we need to have a callback >>> to the driver to compare if two channel contexts are compatible or >>> not (e.g. if they have different puncturing), or does ath12k also >>> have limitations on RX/TX that mean it would actually prefer two >>> channel contexts for the cases I had outlined in the quoted text >>> above (STA+STA/AP+STA)? >>> >> >> If we do end up moving the bitmap back to chandef, we may need some >> changes, because as I said above, when I originally added it I hadn't >> thought of different bitmaps for each vif. >> But can you give an example of what you would consider as compatible >> channel contexts and what would be incompatible? I'm not clear on that part. > > Easy example: > > * control channel 36, 80 MHz, puncturing bitmap 0x2 > * control channel 36, 80 MHz, puncturing bitmap 0 > > Contrary to what I thought and said before, I want to treat these as > *not* compatible now, and allocate two channel contexts if I end up > having to do this. > > johannes I'm okay if you want to move it back to chandef, in fact I myself can send a series for it. As far as two contexts are concerned, sounds like you don't need that for your use-case. And I will confirm if we need it or not. Thanks.