• Zong-Zhe Yang's avatar
    wifi: rtw89: support parameter tables by RFE type · 5395482a
    Zong-Zhe Yang authored
    One chip can have different RFE (RF front end) types which we will judge
    at runtime. And, different RFE types may use different RF parameter tables.
    Though we didn't really meet this case previously, we are going to meet it
    on upcoming chip RTL8851B. So, this commit handles parameter tables for
    runtime RFE type.
    
    We now encapsulate rtw89_txpwr_rule_<2/5/6>ghz tables into rtw89_rfe_parms.
    Then, each chip defines its default parameter tables, and if needed, it can
    configure extra parameter tables by RFE type. Finally we determine runtime
    parameter tables by RFE type if one is configured. Otherwise, we use the
    default parameter tables.
    
    For now, we just move all settings under default parameter tables. We will
    configure parameter tables by RFE types in separate commits afterwards.
    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/20230330080331.37155-1-pkshih@realtek.com
    5395482a
rtw8852a.c 63.7 KB