mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7925: extend mt7925_mcu_add_bss_info for per-link BSS
Extend mt7925_mcu_add_bss_info with per-link BSS configuration. The patch we created is a prerequisite to enable the MLO function in the driver. It is purely a refactoring patch so the functionality should remain unchanged. Co-developed-by: Deren Wu <[email protected]> Signed-off-by: Deren Wu <[email protected]> Signed-off-by: Sean Wang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -246,6 +246,16 @@ mt792x_link_conf_to_mconf(struct ieee80211_bss_conf *link_conf)
|
||||
return mt792x_vif_to_link(mvif, link_conf->link_id);
|
||||
}
|
||||
|
||||
static inline struct ieee80211_bss_conf *
|
||||
mt792x_vif_to_bss_conf(struct ieee80211_vif *vif, unsigned int link_id)
|
||||
{
|
||||
if (!ieee80211_vif_is_mld(vif) ||
|
||||
link_id >= IEEE80211_LINK_UNSPECIFIED)
|
||||
return &vif->bss_conf;
|
||||
|
||||
return link_conf_dereference_protected(vif, link_id);
|
||||
}
|
||||
|
||||
static inline struct mt792x_dev *
|
||||
mt792x_hw_dev(struct ieee80211_hw *hw)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user