wifi: rtw89: mcc: fix NoA start time when GO is auxiliary
authorZong-Zhe Yang <kevin_yang@realtek.com>
Thu, 21 Sep 2023 00:35:56 +0000 (08:35 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 28 Sep 2023 16:25:04 +0000 (19:25 +0300)
commita4d7c872eb87ac00b0af475796f77abda3193b3f
treedddc625703ff3fe1e899e8809c9a823099bda955
parentb2172a9330b5e48f37c3d4f29604727228b39885
wifi: rtw89: mcc: fix NoA start time when GO is auxiliary

Under TDMA-based MCC (multi-channel concurrency), there are two roles,
reference and auxiliary. We arrange MCC timeline based on time domain
of reference role. Then, we calculate NoA start time according to MCC
timeline.

Besides, when MCC runs GO+STA mode, we plan an offset between GO time
domain and STA time domain to make their TBTTs have a time gap.

However, if GO is auxiliary role instead of reference role, NoA start
time is described by STA time domain instead of GO time domain. To fix
this, we apply the offset mentioned above to NoA start time to convert
time domain from STA to GO.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230921003559.11588-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/chan.c