From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.25 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795479887; b=4jUi0IQuQME+vBYJK9gy/7W9qEUR+Af0qZWTBTFStLQnUAf634FCt1tYrOVoKKrFK8AH TE1cz0A1uSwg1i0RLvJQufLngxLicZwgD7IXmNp9QvyU/FF6iaBCJ/sILbLVA/jE7kiun 17wyRRzyPrzSjx8voRYLa6BGCv+pJxppDiL8Ir/nqaw8hJpFB7K4hcimLjdbORO+bv8Ws lTMNE7sSHAizP3/5m+IjRIGW4+Sm70YRvCbnnbUDV55IfXsXFw4WOyRfF1wrtp5XbTG4h XPtBqBiw0jOvMuvPnCVHuxX5SZNQB+FWmm8MenC8xwTCF6se+CLiJDmg4WVFi5YlsXg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795479887; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=yGhlkWyDtC7SLCggn3zg9TrnI8Kvcx8WwQETmzZNSTg=; b=MXJSXm6RFJu9ozV+Fx96sUghdibIeXohiMqInrof5z7jDL3Y9uJKEagQIxDLKvL7pFSO wP67V3Sb3+qftXb1zMpPeByTm0TMnOzpGAjtrDf6h9wjAp7Cn1RA447E5Vz5Oxb93hrEv Mt3zLJ+3j/GSPMxiQpHPTYXC/kKHPPurdPmaz4pRnKR52sjMVx14RXJis4JA6QhxITB2f ihxus/4UVoLfaRpRhowhzacgqr4TqK4T/mSMjyHQSMW0WaYQKs1KCfmIA25Lu+RmFPptE fapefGmJqRjxl0dNUAtCkFUIYooi3+QO69DEks6p5/SCDWhNhSZm6auXn2ryKtoMLSA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=tFoStmYu; arc=none smtp.remote-ip=91.218.175.25 Received: from mta0.migadu.com (out-25.mta0.migadu.com [91.218.175.25]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFBEF606A321 for ; Tue, 24 Nov 2026 00:24:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AFBEF606A321 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=tFoStmYu X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=ZLEk++sxt/bNuIsvPfZnIr47aRBPY+SnjtKozMvkvf4=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795479884; v=1; x=1796084684; b=tFoStmYuHD8F4RUf18ulrSoi4h2iLZesKb/QdiI3KXFwGCtQdd1XRoVQh5MZMsZRTx/zUHM5 ghwwGnH+K+EDnZQOJFddk/dIOC6zGUPgDbQo5rY7pjTDSXViYv+SfACJX3SCF0azQEsY81SIAov Dg4g6oUgqjoNckT0QeZ9ORwY= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id dd40ec3510d58e4e; Tue, 24 Nov 2026 00:24:44 +0000 X-Mizu-Trace-ID: dd40ec3510d58e4e X-Migadu-Flow: FLOW_OUT From: Luka Gejak To: Mehmet Fide Cc: Ping-Ke Shih , Bitterblue Smith , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, mehmet.fide@screeningeagle.com Subject: Re: [PATCH rtw-next v14 3/3] wifi: rtw88: time the countdown downloads from the TBTT Date: Tue, 24 Nov 2026 01:24:37 +0100 Message-ID: <20261124002437.213112-2-luka.gejak@linux.dev> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261121193644.603289-4-mehmet.fide@gmail.com> References: <20261121193644.603289-1-mehmet.fide@gmail.com> <20261121193644.603289-4-mehmet.fide@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Mehmet, Thanks for trying the shorter margins. One comment below. On November 21, 2026 8:36:44 PM GMT+01:00, Mehmet Fide wrote: > + ieee80211_queue_delayed_work(rtwdev->hw, > + &rtwdev->csa_beacon_work, > + usecs_to_jiffies(hold)); > + goto out; I think this can still miss several beacon intervals on a kernel with HZ=100, even without a slow USB transfer. The timer wheel adds a tick after usecs_to_jiffies() rounds the delay up. A hold of a few ms can therefore move the work about 20 ms, which is close to the whole beacon interval at 19 TU. The next run lands in almost the same part of the interval and can defer again. With a 19 TU interval and the TBTT and tick starting together, the timer arithmetic allows consecutive steps at 200 and 550 ms, even without transfer time or a late worker. A station that timed the switch from an earlier count can then move several beacon intervals ahead of the AP. Could the wait for the safe part of the interval use a finer timer, or could we limit CSA to intervals the timer can reliably handle? Best regards, Luka Gejak