Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1557764rwb; Thu, 19 Jan 2023 12:14:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXsIQijhihTs4qvsWmI3qD2Bk8fwiH3UyW11amEO4Vn0JbxZPIP5t9cMUBP5N53A25sEh8kh X-Received: by 2002:a05:6a20:4e26:b0:b8:a148:63b5 with SMTP id gk38-20020a056a204e2600b000b8a14863b5mr12148822pzb.3.1674159284260; Thu, 19 Jan 2023 12:14:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674159284; cv=none; d=google.com; s=arc-20160816; b=tvF+WrM4xAPECYDHdPYzX1bVU5OTDXhd1m3s24Dc8qNSClErSIixtjeEA7ohRW7M2p cq91/JLbdq8t2jkxnyk08mDpZz0ctHByXtOY6VOzWd9c/TMVsBpV7vtZU4g7C089g6Az eSTWXYqyrH/Nh/Yrs7U4DqlxUuTsdD2sfMPci0EXNs6QK/mnQS/QHmXUTX0qwOPYs+Cx 4UqKDvlwgleqS43gFjF0jsM5a639eIKo1gQjjeUPHQwIKfUjPxJ/BAim0F8NTIHIdrDx JT8rzPYmXq/eD/B+BYxX+Na9O4Fw8NbkdNCCnmz9j1c6HP7JDEWgcGj4prE+GZPN7+Pk zBaw== 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=NjDq1H3yfOYs/qcxDGqFjJT9MmOnVktdBhpgsoQ39rQ=; b=MrfgSNBrhUTLIuTztbcHZ7PWmPPHVn3AWicaoBPSPPy1EWAj7//gOJ1cDR/RmVrzY/ KfTBlzYAJt8LhxqnPBHfdG86twcMziJc4HVzWrlk0/xH9eujTHPpJbdrl/n9P+Mhp7ER 6WyuTcWGnHyzSyQ6As2XDbofTAbcdtg1XIOlw4i2EyFImt25ezHgla5vX5Hu4vUpxEgy wFYFii39Zd0MWw6tYXiyYuOVCE4AOI31dB/snI0CFz1qw/mwB4WS7KaDn6QC0g0mbNvS 9wWhDZGRQv9G/n+pYEcWNbVTeUSaRJgaZbXmV6uhIg1rBE1iSU1tWJ2xFo7U4lGQBXMc IZ6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=DdoVzqpL; 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 u37-20020a631425000000b0046e9babe7a1si42453694pgl.54.2023.01.19.12.14.35; Thu, 19 Jan 2023 12:14:44 -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=DdoVzqpL; 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 S229734AbjASUMM (ORCPT + 63 others); Thu, 19 Jan 2023 15:12:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbjASUML (ORCPT ); Thu, 19 Jan 2023 15:12:11 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0B4B9373F for ; Thu, 19 Jan 2023 12:12:09 -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=NjDq1H3yfOYs/qcxDGqFjJT9MmOnVktdBhpgsoQ39rQ=; t=1674159129; x=1675368729; b=DdoVzqpLzYRPM6vvKZKxI+cyM2ajPalcTUmsDoVbt7iw4L3 aF32cL88y8q3cw2ZE6P0j4u6LvIS2bNVLg/XnvQSqiMkZd0Xs7nAofOncBJt6v15XqkemSzduxZcD Bpdc1BJF8W9eoWYT5Gun4wVQs/lZIVk6EuEDgqZANj3w1Cz+u1bfdH8/s4AdbqSFpep7BdR9NVnRd fexkcGAa/0dlyFK8ih/Sb0WLPb6wOQzfZug+pzY3z4CLBU6xbgeEHJ44hrl4hnnmh3Xv7VdGSepHQ kfJ1jrc2pI/hP6w55RwObEIwQ76xV18Ab3tJfGg6bV7inB2wAIWjQr1HKOHpwqxA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1pIbGZ-006e8X-2B; Thu, 19 Jan 2023 21:12:07 +0100 Message-ID: <26ef0d67db3af16853915568585767b13a73ef9a.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:12:06 +0100 In-Reply-To: <9ff00d88-6d12-8ee5-aa25-a5e82879d25c@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> 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 11:40 -0800, Aloka Dixit wrote: > On 1/18/2023 7:57 AM, Johannes Berg wrote: > > On Wed, 2022-11-09 at 13:47 -0800, Aloka Dixit wrote: > > > FILS discovery and unsolicited broadcast probe response transmissions > > > are configured as part of NL80211_CMD_START_AP, however both stop > > > after userspace uses the NL80211_CMD_SET_BEACON command as these > > > attributes are not processed in that command. > >=20 > > That seems odd. Why would that *stop*? Nothing in the driver should > > actually update it to _remove_ it during change_beacon()? > > > Are you sure you didn't mean to "just" say "however both cannot be > > updated as these attributes ..."? > >=20 > > johannes >=20 > FILS discovery has primary channel, center frequency in the frame format= =20 > which should be changed depending on why the beacon changed.=C2=A0 Hmm? Sure, the frequency is important, but beacon can change for so many other reasons? Even just the greenfield bit in HT would cause a beacon change as far as cfg80211/mac80211 are concerned. > Hence the=20 > current design, at least ath11k, assumes that BSS_CHANGED_FILS_DISCOVERY= =20 > and BSS_CHANGED_UNSOL_BCAST_PROBE_RESP "not being set", when beacon is= =20 > changed, means disable these features. > What do you think? 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??? Surely you can't be right - that'd basically mean the whole feature is useless right now because even the greenfield update or similar that basically *always* happens in hostapd would disable it, since the beacon changes and we don't have these patches? > Should I send a follow-up with a different commit log? >=20 Well seems like we need to first figure out the correct semantics here, and possibly fix things... johannes