Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2461930rdb; Mon, 12 Feb 2024 05:56:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8jK9/8Hf5jOHIkVv2IikCZIbIVMDKg8GdfjMeDgrUhLpo+RdUycPulf2XfMeqgWJYOr1T X-Received: by 2002:a9d:76c5:0:b0:6e2:c2ce:6278 with SMTP id p5-20020a9d76c5000000b006e2c2ce6278mr6629994otl.11.1707746161492; Mon, 12 Feb 2024 05:56:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707746161; cv=pass; d=google.com; s=arc-20160816; b=L9+ckfRubCfG3yeghmVOanvDZxhe5ojxn67GkPAqN/LpBhKJOO1Gps0ECfW7aweOxs zMAH3pFrbD/G72Blwh1pwVahljuwjMaPoz/80NVVGwkx5fTmfFOAz67Ubp6ohkvnBh8a 7r3Mr5DNehP6nm/Sf+xSmE0jRXru7u5gD76clWJk5XyjQ1+KEJTbpA1rq3J0/uh5xoKZ /P2ql1CGJK4P+0XZcs31BEGDT9S11hhMap8dE7x5IdfsHB5b0cnasajtaPaUErXcoVak 1+5rAkkHU0AJdA5yW08sraF8tzfWW4A2PRu3SRqIP2tCNajGBAY3Z0nA4Ki1mHO2LGf2 34+g== 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=WQik/vQQ5fYkSAlPnsE7CTzqAybl/Up/d/dGFWV+6bQ=; fh=IZsUTHlJoMu0yYIK0e7KDkpw7QjME+vv22JSx7ZkbEM=; b=Phpl/cniKTBjukUjipmjnQP5Ro+1TQ8AQ16/ewZ+78yKAVSLLqpyEeF9Xv8Fbh7jGA rxUIGtbcmSzzVfFWeXioqa1gSRpWyKtY3NrGiH5CWLZm1wl1AY2yMcYYzHCdCqvFIyw1 e+mV0NOP4eo1fYwbfSWfGeKJhr3z3qAtqEAboWpe3BbQO3P7QlP8vjnqLPVBg4DuCunt cqpoFifQzsF6roQHWKTnS3K6rtDYTK3poPg3IfXSdnglyZytOZouNKNBYd5TqJLJI8Q6 wSELoWJqYhxDxZwwsTq63NiPz7xv5LQT8iYkuaq8sOaDiJYI2kmOhqqeBlhKsdas+DFo synw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=GPqc1R5s; 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-3457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3457-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net X-Forwarded-Encrypted: i=2; AJvYcCVLgGx9g4i6q6vRYQCi054HX0I0VIc0Ef86xL0EGnM6h1FQQ1HtSSsqZMZeTAXW1UOXvLFv73L5g6yFSBuNXDaz+8PqwpHWMGu24R6YPA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ay7-20020a05622a228700b0042c70376fb8si446855qtb.500.2024.02.12.05.56.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:56:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=GPqc1R5s; 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-3457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3457-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3D81E1C2229A for ; Mon, 12 Feb 2024 13:56:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 292F73FE2E; Mon, 12 Feb 2024 13:45:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="GPqc1R5s" 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 9448C3FB2A for ; Mon, 12 Feb 2024 13:45:28 +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=1707745531; cv=none; b=DrTbR0KZWpG65S3ULPFGa0O9E8/8xjnGP2buvsEkifREIL1gZo+r5wrDGqjTkPpQt+LMC7RqY6qHhMBfrVO87FeEtgF+T9hqSpQWTR5hhjQ2pnwVY1TXjvOTntsOwBqfBFyRYO6g8hGxLQjOyFZfbJIjKszbcZitAeI/4KjsxzE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707745531; c=relaxed/simple; bh=qzgKZ4ORxZPsF8tez1/2hCRYo8Z5AhlKpenHGCnY0Ag=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=suaFaNN7xsbuke1DG/iC3EobXfZ/27YMQkgaSePRnpLfdsoieB4LhFwfL0dcCbgCv8lmaGP0gE0lqCthl9vx8+3hZnLA6xeq0fNmUIb5EqfcfAmFQeq7Nsb9caGgCStjIidzNPXwfGtwDl/mJiEojGhWUqJrcnMRiH40L0mjdx8= 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=GPqc1R5s; 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=WQik/vQQ5fYkSAlPnsE7CTzqAybl/Up/d/dGFWV+6bQ=; t=1707745528; x=1708955128; b=GPqc1R5sI7Bhe/YRpkDlCOi2QBJ+dZQtt0JLsPrTB6BaEtP 30JCxWIldYefoUWOUIjEm6bDlUbbGpVD5ZTkdbvWQeDs0RvdyDGcFhwlc1BDGDpNMo1DCYYOBF1ZX oEbxN41f7c3lZ1hViuTjZBwdJ2arhtEdQuljao0Mj2k93iaHI4eiBtnURczAkd/gzWNOTdrz8LsMk ryHKO3+8kW1XiQuti4NGXiIzj4OIu1E47AE2whvTOwaeaZht09SH5vcEjYRO5xAwjg9BLorB5H4WW vua9dsgAHxwQNaBXqLVTDJhiNEHZDFF1SsIp8uGkOnEx5cCawxhRztiQa3dACbkQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rZWcf-0000000699d-1RpF; Mon, 12 Feb 2024 14:45:25 +0100 Message-ID: <25c51905aac00bde0591d169d00b301c608234c5.camel@sipsolutions.net> Subject: Re: [PATCH 3/8] wifi: mac80211: make associated BSS pointer visible to the driver From: Johannes Berg To: Miri Korenblit Cc: linux-wireless@vger.kernel.org Date: Mon, 12 Feb 2024 14:45:24 +0100 In-Reply-To: <20240206164849.6fe9782b87b4.Ifbffef638f07ca7f5c2b27f40d2cf2942d21de0b@changeid> References: <20240206145411.3217588-1-miriam.rachel.korenblit@intel.com> <20240206164849.6fe9782b87b4.Ifbffef638f07ca7f5c2b27f40d2cf2942d21de0b@changeid> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3 (3.50.3-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-06 at 16:54 +0200, Miri Korenblit wrote: > Some drivers need the data in it, so move it to the link conf, > which is exposed to the driver. > + * @bss: the cfg80211 bss descriptor. Valid only for a station, and only > + * when associated. >=20 For the record, I'm dropping this patch. Yes, the data is there in the stack, but the cfg80211 BSS contains data that is not authenticated (from probe responses etc.) whereas mac80211 is (hopefully always) operating on data that is authenticated with beacon protection. So exposing this to the driver feels fragile - if it actually gets used for pretty much anything, it won't necessarily be authenticated data. We were planning to use it for just the RSSI, which is probably fine, but we can do that differently. johannes