• Zong-Zhe Yang's avatar
    wifi: rtw89: mcc: fill fundamental configurations · 4dc25ef1
    Zong-Zhe Yang authored
    We determine the fundamental settings shown below.
    
     |<                MCC interval                 >|
     |<    duration ref     >|<    duration aux     >|
     |           |                       |           |
                 |<    beacon offset    >|
    	     |                       |
                 V                       V
             (tbtt ref)              (tbtt aux)
    
    (where `ref` (reference) and `aux` (auxiliary) mean the two MCC roles)
    
    Based on MCC mode (GO+STA or GC+STA), we fill configurations of
    MCC interval and beacon offset. And, we make sure each MCC role
    have a basically required duration in the MCC interval.
    
    The beacon offset mentioned above is a parameter for further MCC
    pattern calculation. If MCC is in GC+STA mode, we will calculate
    the real beacon offset through TSFs shown in beacons of both MCC
    roles. Otherwise, we will use a default beacon offset, and make
    GO sync STA's TSF timer with this offset.
    
    MCC pattern calculation will break down each MCC role's duration
    in more detail. We will implement it in the following.
    Signed-off-by: default avatarZong-Zhe Yang <kevin_yang@realtek.com>
    Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
    Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
    Link: https://lore.kernel.org/r/20230831053133.24015-3-pkshih@realtek.com
    4dc25ef1
chan.h 2.89 KB