Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1599592rwb; Thu, 19 Jan 2023 12:51:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXsYMPrRFx/5pnb7vTULLEhlfRtGX3VXkXwKxip4eDtgab4i445wGQLIztj+mRsEAmI2AINa X-Received: by 2002:a05:6a20:4fa9:b0:b8:3264:122b with SMTP id gh41-20020a056a204fa900b000b83264122bmr13019811pzb.15.1674161492785; Thu, 19 Jan 2023 12:51:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674161492; cv=none; d=google.com; s=arc-20160816; b=bKxOeYX6g4ju5L4wHHPXcTg+JXc/vtHKJIT+5KUVm7Ncs/6IXjduMXVKtfETpkfBct OZG+4sm3dZ5G6F34YT+nZRnsuwBo8Qhz5kCnskKJptx2CyMKjELycjs9f3lZZJ66QtIK W+1h22wWN4avYecH9xOQqp5R/B2eplFm0Z6qzeP4I5HF2x8hFc++JhbrDNFIDSAsampH 4OWmiq+KXsJaidRfsbQAzVIzanDm6MqbQksFe8qjE0cv3EJFhlhGmGtwCIz4mPUvskuc WiDPktEYKxhRodDQ3dCucwsdJMINPyPcoGMix8P+fOLZotlm8DBsXUtYt/SNGT6e4RZv 8gmg== 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=IrKXFoWY8QlPfpZ5xykFKvxWc+mI69/vdm8Cnw8Wy0o=; b=d7Hm073VBBaPhzcdFwLKQ0qsJ+Mc6BwTyKapoN5gYYSM5+SCSR8n7a41+mJIr/atee nZ+k/B05DWFTli6MAXvFSg2zPOAXxXs7QEcScyEGZBReCLfXmnEKRkISusNn2BeTXOH1 Juf+XsuofUbX/YH+2SLOCxz56cybLuT4f6dPHiE2pSWVo/xlpS5S4/r71iklozhsxG8/ oJ0S8YAlQk3yT+jPrKh0mvtqXa3NzF6H66OFiaJGvfGfB/Klqo4ViBsoNl/9FaWfB0Ru sYFuTM334erpEuUokGkSwxyn1dhAOLcqRtup18FepNApN+v4WPHeaDnOA6a3q/A7BZYX WNKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=KYASbuwf; 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 r26-20020a635d1a000000b00479568ac352si40408708pgb.526.2023.01.19.12.51.22; Thu, 19 Jan 2023 12:51:32 -0800 (PST) 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=KYASbuwf; 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 S229796AbjASUr4 (ORCPT + 63 others); Thu, 19 Jan 2023 15:47:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229724AbjASUrw (ORCPT ); Thu, 19 Jan 2023 15:47:52 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B49B4EEA for ; Thu, 19 Jan 2023 12:47:51 -0800 (PST) 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=IrKXFoWY8QlPfpZ5xykFKvxWc+mI69/vdm8Cnw8Wy0o=; t=1674161271; x=1675370871; b=KYASbuwfgHB47yM2lxEmYFQvXpG5SXZyUg2ryD6mPuEJTTE BMbIMVe0/rPzHD11Z3HMEwUuFbYYvRbAN8E6oyHN9fQyeOYHBa6c3z/LF/WJ+mh6TNxEee4xZTpwh Mw1hEiOgPWFBlqj4y0OrDzp0rATmRzD4FCwnertnIt0Ow/+kQoSAOL/cqaYFAydW3PRA3+k+HyAB5 Nq717eBmuv1ACKkCstM4myOrPCeM141XxPKaHx1MG5l+Um2wwgmLryQHRDEmNLmLWwvG7ikY3W1u1 /yVZjuvCpd3sANp95TpjzW4ikh3dn6OH2k3wx3Ej41x1NaeshXrymrmojC1EqqOQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1pIbp7-006f1L-17; Thu, 19 Jan 2023 21:47:49 +0100 Message-ID: <733b35861bbed8d3b7cf8625d3bf59f1c34e08da.camel@sipsolutions.net> Subject: Re: [PATCH v7 2/3] nl80211: additional processing in NL80211_CMD_SET_BEACON From: Johannes Berg To: Aloka Dixit , linux-wireless@vger.kernel.org Date: Thu, 19 Jan 2023 21:47:48 +0100 In-Reply-To: <1598bf6d-1d0b-3753-73fa-2568d27d60b6@quicinc.com> References: <20221109214720.6097-1-quic_alokad@quicinc.com> <20221109214720.6097-3-quic_alokad@quicinc.com> <0b42cfb9f0effce61b33c41ec9067b3747fade5c.camel@sipsolutions.net> <9ff00d88-6d12-8ee5-aa25-a5e82879d25c@quicinc.com> <26ef0d67db3af16853915568585767b13a73ef9a.camel@sipsolutions.net> <1598bf6d-1d0b-3753-73fa-2568d27d60b6@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3 (3.46.3-1.fc37) 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 Thu, 2023-01-19 at 12:43 -0800, Aloka Dixit wrote: > >=20 > > > Hence the > > > current design, at least ath11k, assumes that BSS_CHANGED_FILS_DISCOV= ERY > > > and BSS_CHANGED_UNSOL_BCAST_PROBE_RESP "not being set", when beacon i= s > > > changed, means disable these features. > > > What do you think? > >=20 > > I think that makes no sense? If mac80211 didn't clear struct > > ieee80211_bss_conf::fils_discovery, then surely it should stick around > > even if the beacon changes??? > >=20 > "max_interval" was be used as the enable/disable knob for these=20 > features. Non-zero =3D enable, zero =3D disable. > But the side effect of that is if NL80211 does not receive these=20 > attributes then by default the interval is set to 0. But it doesn't change in bss_conf if you send change beacon, at least not before these patches? Or am I confusing myself? > I can think of following: > (1) max_interval cannot be the enable/disable knob because then every=20 > code path in the userspace would still need to set it to non-zero to=20 > continue transmission. Are you okay with having extra members in enum=20 > nl80211_fils_discovery_attributes to ENABLE/DISABLE? I think that is=20 > what you suggested in your comment for the next patch in this series as= =20 > well. >=20 > (2) If the template needs changing for any reason then the userspace=20 > will be responsible to send a new one. Until then the driver will=20 > continue the transmission with existing template and interval unless=20 > DISABLE is used. >=20 Were those meant to be mutually exclusive, because it doesn't seem like that to me? I think (2) must be what happens now, before these patches, because I don't see where it would be changed? Like I said above. I agree that we'd now need an explicit way to indicate "disable", but we could for example say you disable by adding a nested NL80211_ATTR_FILS_DISCOVERY attribute without any of the sub-attributes, which logically kind of makes sense - you're changing NL80211_ATTR_FILS_DISCOVERY, but you're not including a new set of parameters, so logically that means disable? johannes