• Zong-Zhe Yang's avatar
    wifi: rtw89: mcc: initialize start flow · b09df09b
    Zong-Zhe Yang authored
    We prepare to support TDMA-based MCC (multi-channel concurrency)
    which allows two kinds of modes below.
    * P2P GO + normal STA
    * P2P GC + normal STA
    
    Each mode has two vif and two chanctx. Then, each vif binds one
    separate chanctx and becomes one MCC role. We name the two MCC
    roles as follows.
    * MCC role - reference (ref)
    	We calculate the baseline of our TDMA things accodring
    	to its info, e.g. TBTT. In normal case, it will be put
    	at the first slot of TDMA.
    * MCC role - auxiliary (aux)
    
    MCC state machine will be running in FW eventually, but before that,
    we have to fill and calculate things that are needed by FW. We fill
    the information of MCC role according to its vif and its chanctx.
    Then, we calculate the start time for MCC.
    
    Note that the parameters used in the calculation now is assigned by
    default rules. The precise parameters for better MCC behavior will be
    derived 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-2-pkshih@realtek.com
    b09df09b
chan.c 22.1 KB