wifi: rtw89: mcc: refine filling function of start TSF
authorZong-Zhe Yang <kevin_yang@realtek.com>
Tue, 22 Apr 2025 01:46:19 +0000 (09:46 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 28 Apr 2025 06:40:24 +0000 (14:40 +0800)
commit1cc8a27bf621877bf829ade6543b8b73c93b726a
tree24b432ecfaad7346e6b0578035943113861e1562
parentab67677712c0386781671e31390f44567da59d53
wifi: rtw89: mcc: refine filling function of start TSF

Since tob (time offset behind) could be negative, change the type of tob in
microsecond to s32. And, refine accumulation with while-loop by calculation
with roundup_u64(). Besides, as long as one of the MCC roles is GO, use the
short MCC start time.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250422014620.18421-12-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/chan.c