Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1750722rwe; Fri, 2 Sep 2022 03:16:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR5b4PdC2FRMmwbfgR9QKPJrZx8FPHa8JRc9SRWpEKgIC4o+JblXgUS4W3/jYVR3rg7kQF1R X-Received: by 2002:a17:907:75ea:b0:73d:daa0:3cbe with SMTP id jz10-20020a17090775ea00b0073ddaa03cbemr25144205ejc.662.1662113764576; Fri, 02 Sep 2022 03:16:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662113764; cv=none; d=google.com; s=arc-20160816; b=Q2uwIfDaAdNjlV8LTFc6tp8pG6qzHNV0sHGmRaqRvo0vs86LPLcg3x3BhvjRNGj6Pa LTN1d4xnUmgCbGdmdGyQLfBAmkLf1Iso5BxVlvK7k5MJd11hJ88RbEiSbfR7e5wRKjbI FgpaU6eIaEisu+kOHOTDBxN31bY574HAGfi1yqxp+p5pALLfjBmsZsABETOp3sUNFcx5 xWX/3BgKUXWcjsSV1ffHMtYUrpABzJl7B3dOubzcGfuMwc+CS/XuhqyNCx1CisPAecP2 wYDIOGDWYF3U/eo7y6fRWLejhS2hwQbC4yULG3WF99Mi5oMBdFbSy8+1unsB3UCqcGVJ Ga8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yzl0ZrHrtS0bnPSG44eioa1iLSYXF3Tc3C5yrNYDd80=; b=ojAv2SC2qRPjKzcWCoQnaGElR4AP22Vj0Ys650X8TnSz06DmUSNZKkIMh0s2xI7PLp anyGrccGGrOZfRbg9HMukHUMST0gsm8DmnysGevkExLZxfEwWa73Bol2mGHZWvjqy8Hs Nb0PYZHsyY3n3/4WF4bKbopx3sRtkNeLzxPWSLxe9Leaqig2I2XsxNM4E034UU6Q8x49 A2QDYBC8arWgS8/GMiYL9Tw7QCiqCdzqTa+HUjQNF5Qx4Xp7yjmeI4bEC6csITnK4b+v S4m/fwECv5Ua6R2+Sj2R/pn9mfQ9giRKr9Z7/qhaDCYy+QOq5+H9rjss821aKMLJSoFV NKtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="C9C/+LEI"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt14-20020a1709072d8e00b007417c184ea5si1479961ejc.628.2022.09.02.03.15.45; Fri, 02 Sep 2022 03:16:04 -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=@broadcom.com header.s=google header.b="C9C/+LEI"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235978AbiIBKK5 (ORCPT + 64 others); Fri, 2 Sep 2022 06:10:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236058AbiIBKKE (ORCPT ); Fri, 2 Sep 2022 06:10:04 -0400 Received: from mail-oa1-x2f.google.com (mail-oa1-x2f.google.com [IPv6:2001:4860:4864:20::2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD39DC12C3 for ; Fri, 2 Sep 2022 03:09:32 -0700 (PDT) Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-11ee4649dfcso3613408fac.1 for ; Fri, 02 Sep 2022 03:09:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=yzl0ZrHrtS0bnPSG44eioa1iLSYXF3Tc3C5yrNYDd80=; b=C9C/+LEIemsC8vbeTwp0NyDtpc8NYyTf1ueQFHLcBF/nGBvMl7n1n+Hgh0h23iJ5ws 0KjenkMCI+pCnoUayZVTpyae9/Qgxd2MVeI6HLLnd1GgC8rQEwCv998H5bNaXqstp6Q/ SPTHk+uQxp24Fr6AYA9ihMvEPEkuKAIkQTaQE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=yzl0ZrHrtS0bnPSG44eioa1iLSYXF3Tc3C5yrNYDd80=; b=C2Ojf5u3FXU5TJU1qRt7vlyO2nWpFJJN+76WKR388pCqTfyVnjCzP1AsD/C9LSVzNc m+6LNPdRZBg5c0NoDDMRFuQFdiOtKChhCgcn6AwxdWW2mtoWQ2RJOmQj83R7SWeWR7sa kn5aSUycge6MwQS5JaQe8CDZ3htZfRLqtD86QJ8NTRqyVL6Pf42WzKGSiBEeX0Ubg730 mNb8SdvD9MAAHNj6EIDGOAF14bz+lW0x23qYr8Ce3NuuoAEidz3oJ0jaw0z6XD2NAkdI xbpGoUbyq36aE+Ardx3J8SwIKULX3zxiijE/zDkiGop1QXugpD5V0wBg3l5J0AP71kdV hvVQ== X-Gm-Message-State: ACgBeo2qkzaUpwrYGbu94PkxvjLIO5rVBlpP3FhxmPqVwRWycqOGc50v DvtcRxO2FTqKobD37ilQBuV89ns1pMgnRAPEzGwK4w== X-Received: by 2002:a05:6870:4347:b0:10e:d8ab:deb2 with SMTP id x7-20020a056870434700b0010ed8abdeb2mr1810265oah.146.1662113371092; Fri, 02 Sep 2022 03:09:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Vinayak Yadawad Date: Fri, 2 Sep 2022 15:39:20 +0530 Message-ID: Subject: Re: [PATCH 1/1] cfg80211: Update Transition Disable policy during port authorization To: Johannes Berg Cc: Jeff Johnson , linux-wireless@vger.kernel.org, Jithu Jance Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi Johannes, Jeff, I have published the version2 with the above points mentioned. [PATCHv2,1/1] cfg80211: Update Transition Disable policy during port authorization On Tue, Aug 30, 2022 at 2:46 PM Vinayak Yadawad wrote: > > Hi Jeff, Johannes, > > From your points we understand, we need a length variable and the > td_bitmap value. > > As per the spec > https://www.wi-fi.org/download.php?file=/sites/default/files/private/WPA3_Specification_v3.0.pdf( > Table 4. Transition Disable KDE format), > we do have variable length of the bitmap. So we could > 1. Add 2 arguments > 2. One would be for the length of td_bitmap. > 3. The second argument would be an u8 bitmap array depending on length > of bitmap. > Accordingly checks can be added to indicate/ignore the indication of > bitmap to upper layer. > Also the driver can update these fields as length 0 and array NULL in > case no value to be updated by the driver. > > On Mon, Aug 29, 2022 at 3:22 PM Johannes Berg wrote: > > > > On Fri, 2022-08-26 at 08:48 -0700, Jeff Johnson wrote: > > > > > > > @@ -3268,6 +3270,7 @@ enum nl80211_attrs { > > > > > > > > NL80211_ATTR_TX_HW_TIMESTAMP, > > > > NL80211_ATTR_RX_HW_TIMESTAMP, > > > > + NL80211_ATTR_TD_BITMAP, > > > > > > > > /* add attributes here, update the policy in nl80211.c */ > > > > > > Johannes, do you want the policy updated even thought this is > > > driver->userspace and hence the policy is never applied to it? > > > > Yeah in a sense, it doesn't really matter... I think not updating is > > fine, then it will likely even be rejected, at least in any new > > commands. > > > > > > struct { > > > > u8 bssid[ETH_ALEN]; > > > > + s16 td_bitmap; > > > > > > I know you are using -1 as an indication that the bitmap is not used, > > > but using signed with a bitmap seems strange since bitops can be > > > affected by sign extension. Just something that set off my Spider-Sense. > > > > Yeah true ... maybe a separate validity bool would've been better? > > dunno. > > > > johannes > >