Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2237162rdb; Wed, 21 Feb 2024 01:00:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVw4kooje2sJHZC1Io0taqirOeV+tZpEQHfWRzQEr4ZtSGEIrjVnsKF7pmbIwNKu6U4etF9qFIipKvzoW/uC1S7d4UVEy3zmuDI2my4IA== X-Google-Smtp-Source: AGHT+IHWhE5R7iiOVxafGnZsb7hsPkSNa3E2tlIQbkuncAN54KqZI/IcWiyN3yiJiKJwTlm04Xiy X-Received: by 2002:a0c:aad1:0:b0:68f:5fce:66f1 with SMTP id g17-20020a0caad1000000b0068f5fce66f1mr5465604qvb.46.1708506050617; Wed, 21 Feb 2024 01:00:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708506050; cv=pass; d=google.com; s=arc-20160816; b=E/rPvRGud8R2Qit1EZfll22xRV9AL03zPa0bzAih44dtcWMroTq2Wnii1sdHCkK72B iIcp2P8JPtTgRL0RY8eC8ZsicGvabBxywfFPGMn/atmmHqsfK8lmb1NRMjSeFmQjouIk eUjgO1PzW/abE4CMOjfxGqUMjFN1ztE3VQ0KoovtrTcEJNjlJV8EaOjLhuE1proXf/ST fShGiXOdnHKwXXZrrxD9WACXdTgoqtcmFCzUnvP060TU6FI6vZxjtHq+ooCPuawoZVne atW4n0Z82dvx//gE74JuQxm31RsKFLIjUXia/U2s4RncwkvTwRWkCr5eWbVUTf2pHMhQ lhaA== 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=10tzTNPQ+Mhrc8e9CqSysoSr5mh7gFsmHeTJ/8qhOqg=; fh=dlShG6TO/krqNFeM3RHz/tYXNpbc21GvtUrVnXWWNEI=; b=mc28atbmLnayOUqQaHjDKXMRA1l0KUhCPdO2W6gGeyxvaeD5I6BFb3nXYTRLIjnc2K 3rb/y1XJSYNpdH6fFpk15B+ZQ8e21zsygNyEGhE7qhMLD5zQ76P0pXv1vzOIl1vqJnjV u5Wb2MW/kXoQTGTx3NUCocZwxkTE3PLfJ1xOZKom2zEhXyHfDk0mRq3Z56HG224zBrCV ToU7aeO/6EZ6kT8BlCFt9j+zbtWHdGrsMfQfMfQeQHHgok/Bj3nPo1M9ZgviMP6ohJi8 g4jOyI+ZzfrVm7ZJaEHLTLqdnsIPA4A/3xCS5OxfVn3E9DgdXtZRahkd3CAkJAg33qel 0CbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=L8dlMd+L; 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-3846-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3846-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id cn18-20020ad44a72000000b0068f41b53618si9381425qvb.262.2024.02.21.01.00.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 01:00:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3846-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=L8dlMd+L; 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-3846-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3846-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 2C07B1C248FA for ; Wed, 21 Feb 2024 09:00:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E3EB3D0DF; Wed, 21 Feb 2024 09:00:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="L8dlMd+L" 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 6DBAD3D0A8 for ; Wed, 21 Feb 2024 09:00:01 +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=1708506003; cv=none; b=l5tnyMDTLkSkec4G/Pj3GmZCVvFc1uVdTmdjuKrvBSCltBNhMRmAt7qTs+me+q243bVQ0pk0vZf9f5leAD9nNrTZEMT37NrlIEYm9UHRxlGGhDIivFalimzBwIMRStFEvc41nQ408O2h7Us8LAES3Cc4eyceb+KvSgSOqddsdA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708506003; c=relaxed/simple; bh=10tzTNPQ+Mhrc8e9CqSysoSr5mh7gFsmHeTJ/8qhOqg=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=uys6CWGJbgptWbUfYspfwzLcCBISA5ZXZ892U29/rTJy+gC117bnoz767snuoy3sNAgkXEZiTZOBIvcYsxgx1zcLE7fiD1ShoNHKQt9vdPMOZ4NAwsdgfsHm2I6Idap1hBtcqME02cZLqTCGJGyCpvpTw8+dFd/WHC/0pJzPvLc= 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=L8dlMd+L; 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=10tzTNPQ+Mhrc8e9CqSysoSr5mh7gFsmHeTJ/8qhOqg=; t=1708506001; x=1709715601; b=L8dlMd+LyMlLmIxxEUeMo81SwIzisZKq0PxS2hxwVslsQ2v RlqGmEAZolQZ8PUxibvHvvLbctLbqbKfntPjnwXUJeIVejsHl19kTjNKkHXEstWV3I0ZdmdX6kcve 57QrpByIHTZhVm1PJx+MWXco7yVUvJl5tDpnqVZh/KizMrhySZkHqdAYSXZCx+f5PdT/uMqTE3cyk gRQEFF5Zb5bOJsUHxyHkPepfNvxPRsKH/KQDGDAJMNq69TQYb/k378Ncoq0mYOfDFCuk0RzyyvHB9 zo3wjXCOdMK9Ptl1lVdYcQy10/BtAwwnzgy5kxUVh/xGwRHwuVvEyVT3VgbtXc3g==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rciSK-000000027wF-3WRA; Wed, 21 Feb 2024 09:59:57 +0100 Message-ID: <64d1af77e7392aa14a90273d4004dbc23a4ec8ed.camel@sipsolutions.net> Subject: Re: [PATCH v8 4/5] wifi: mac80211: start and finalize channel switch on link basis From: Johannes Berg To: Ping-Ke Shih , Aditya Kumar Singh Cc: "linux-wireless@vger.kernel.org" , Jeff Johnson , Ilan Peer , Jouni Malinen , Ryder Lee , Arend van Spriel , Felix Fietkau Date: Wed, 21 Feb 2024 09:59:55 +0100 In-Reply-To: References: <20240130140918.1172387-1-quic_adisi@quicinc.com> <20240130140918.1172387-5-quic_adisi@quicinc.com> <646d1e3e404a437f4c99c80996eb4f194ac242b8.camel@sipsolutions.net> <26df9aa6-e497-4040-ad5c-c647454acca6@quicinc.com> <5c0fd2eb-eb19-4b69-a325-ad9eef633336@quicinc.com> <18c0d4de-392a-420c-8a05-466a83cd2eb8@quicinc.com> <3c550ae335a9762a9cbd0c8109b6dd99faeb8f6f.camel@sipsolutions.net> <5a89e63fb7644d12be72154c90c96199@realtek.com> <32b5e358f7b54f4921e0a9e44a71f3a791f0d0da.camel@sipsolutions.net> <00094ae0ca73461c88799c070ad9b55a@realtek.com> <9d3bea8152fe49278fe9804167ec8871@realtek.com> <08a989730bbc456df481aee8ae278a5cd9b35f85.camel@sipsolutions.net> 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 Wed, 2024-02-21 at 08:57 +0000, Ping-Ke Shih wrote: > > >=20 > > > No, firmware doesn't modify content of probe response frame. > > >=20 > >=20 > > Can you get that fixed? ;-) > >=20 > > With differing beacon intervals etc., I don't know there's a good way t= o > > keep the counters even with a semblance of correctness, especially if w= e > > don't know when the beacon was transmitted? > >=20 > > Or maybe just fill it in the driver since you probably have some beacon > > timing data more easily accessible? >=20 > If driver can get CSA or ECSA offset simply, I probably can fill a reason= able > CSA counter (not sure if I can get 100% accurate counter for now), but > seemingly neither ieee80211_tx_control nor ieee80211_tx_info (SKB_CB) doe= sn't > have these offsets. Any suggestions? We're not there yet! This thread is debating how we want to handle it. Although .. you have a point, we have that issue now already, and we don't pass the CSA offsets in probe responses if hostapd is filling them in. I guess we also have work to do on this. > I wonder our out-of-tree driver generates probe response itself. Let's me > check how it does. You _could_ also actually just implement probe response "offload" in the driver, then you get the template from hostapd/mac80211, and that should come with the offsets to fill in. Might be easier, overall. johannes