[PATCH v2] wifi: ath11k: add tx delay to TSF
Kalle Valo
kvalo at kernel.org
Tue Aug 6 00:47:41 PDT 2024
Hari Chandrakanthan <quic_haric at quicinc.com> wrote:
> In ath11k AP, the TSF timestamp mod the beacon interval does not vary
> and is close to 0.
> It is expected to be around 384us for 2 GHz and 54us for 5 GHz/6 GHz.
>
> The value of the TSF timer at TBTT is a multiple of the beacon interval,
> while the value of the TSF timestamp in the beacon accounts for medium access
> delay and physical implementation-specific delays through the PHY,
> which could cause the value of the TSF timestamp mod the beacon interval
> to vary.
>
> An AP sending a beacon frame shall set the value of the beacon frame’s
> timestamp so that it equals the value of the STA’s TSF timer at the
> time that the data symbol containing the first bit of the timestamp
> is transmitted to the PHY plus the transmitting STA’s delays through
> its local PHY from the MAC-PHY interface to its interface with the WM.
>
> In ath11k the physical implementation-specific delays were not accounted
> for TSF timer and it resulted in incorrent TSF timer values.
>
> Add the physical implementation-specific delays in the TSF of beacon
> template and probe response, so that the TSF holds proper values in the
> beacon and probe response.
>
> tx delay for 5 GHz/6 GHz:
> 20(lsig)+2(service)+32(6mbps, 24 bytes) = 54us + 2us(MAC/BB DELAY)
> tx delay for 2.4 GHz:
> 144 us (LPREAMBLE) + 48 (PLCP Header) + 192 (1Mbps, 24 bytes)
> = 384 us + 2us(MAC/BB DELAY)
>
> Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00192-QCAHKSWPL_SILICONZ-1
>
> Signed-off-by: Hari Chandrakanthan <quic_haric at quicinc.com>
Dropping this, please rebase if still needed.
error: patch failed: drivers/net/wireless/ath/ath11k/core.h:365
error: drivers/net/wireless/ath/ath11k/core.h: patch does not apply
error: patch failed: drivers/net/wireless/ath/ath11k/mac.c:1437
error: drivers/net/wireless/ath/ath11k/mac.c: patch does not apply
error: patch failed: drivers/net/wireless/ath/ath11k/wmi.c:8627
error: drivers/net/wireless/ath/ath11k/wmi.c: patch does not apply
stg import: Diff does not apply cleanly
Patch set to Changes Requested.
--
https://patchwork.kernel.org/project/linux-wireless/patch/1686636183-1026-1-git-send-email-quic_haric@quicinc.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
More information about the ath11k
mailing list