mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7996: Rely on mt7996_vif_link in mt7996_mcu_twt_agrt_update signature
This is a preliminary patch to enable MLO for MT7996 driver Co-developed-by: Bo Jiao <[email protected]> Signed-off-by: Bo Jiao <[email protected]> Co-developed-by: Peter Chiu <[email protected]> Signed-off-by: Peter Chiu <[email protected]> Signed-off-by: Shayne Chen <[email protected]> Co-developed-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Lorenzo Bianconi <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
0eee20d3e3
commit
200ce414fe
+3
-2
@@ -2672,7 +2672,8 @@ void mt7996_mac_add_twt_setup(struct ieee80211_hw *hw,
|
||||
}
|
||||
flow->tsf = le64_to_cpu(twt_agrt->twt);
|
||||
|
||||
if (mt7996_mcu_twt_agrt_update(dev, msta->vif, flow, MCU_TWT_AGRT_ADD))
|
||||
if (mt7996_mcu_twt_agrt_update(dev, &msta->vif->deflink, flow,
|
||||
MCU_TWT_AGRT_ADD))
|
||||
goto unlock;
|
||||
|
||||
setup_cmd = TWT_SETUP_CMD_ACCEPT;
|
||||
@@ -2705,7 +2706,7 @@ void mt7996_mac_twt_teardown_flow(struct mt7996_dev *dev,
|
||||
return;
|
||||
|
||||
flow = &msta_link->twt.flow[flowid];
|
||||
if (mt7996_mcu_twt_agrt_update(dev, msta->vif, flow,
|
||||
if (mt7996_mcu_twt_agrt_update(dev, &msta->vif->deflink, flow,
|
||||
MCU_TWT_AGRT_DELETE))
|
||||
return;
|
||||
|
||||
|
||||
+4
-4
@@ -4236,7 +4236,7 @@ int mt7996_mcu_update_bss_color(struct mt7996_dev *dev,
|
||||
#define TWT_AGRT_PROTECT BIT(2)
|
||||
|
||||
int mt7996_mcu_twt_agrt_update(struct mt7996_dev *dev,
|
||||
struct mt7996_vif *mvif,
|
||||
struct mt7996_vif_link *link,
|
||||
struct mt7996_twt_flow *flow,
|
||||
int cmd)
|
||||
{
|
||||
@@ -4267,12 +4267,12 @@ int mt7996_mcu_twt_agrt_update(struct mt7996_dev *dev,
|
||||
.len = cpu_to_le16(sizeof(req) - 4),
|
||||
.tbl_idx = flow->table_id,
|
||||
.cmd = cmd,
|
||||
.own_mac_idx = mvif->deflink.mt76.omac_idx,
|
||||
.own_mac_idx = link->mt76.omac_idx,
|
||||
.flowid = flow->id,
|
||||
.peer_id = cpu_to_le16(flow->wcid),
|
||||
.duration = flow->duration,
|
||||
.bss = mvif->deflink.mt76.idx,
|
||||
.bss_idx = mvif->deflink.mt76.idx,
|
||||
.bss = link->mt76.idx,
|
||||
.bss_idx = link->mt76.idx,
|
||||
.start_tsf = cpu_to_le64(flow->tsf),
|
||||
.mantissa = flow->mantissa,
|
||||
.exponent = flow->exp,
|
||||
|
||||
+1
-1
@@ -563,7 +563,7 @@ int mt7996_run(struct mt7996_phy *phy);
|
||||
int mt7996_mcu_init(struct mt7996_dev *dev);
|
||||
int mt7996_mcu_init_firmware(struct mt7996_dev *dev);
|
||||
int mt7996_mcu_twt_agrt_update(struct mt7996_dev *dev,
|
||||
struct mt7996_vif *mvif,
|
||||
struct mt7996_vif_link *link,
|
||||
struct mt7996_twt_flow *flow,
|
||||
int cmd);
|
||||
int mt7996_mcu_add_dev_info(struct mt7996_phy *phy, struct ieee80211_vif *vif,
|
||||
|
||||
Reference in New Issue
Block a user