wifi: mt76: mt7925: sync MT7927 BSS band assignment

MT7927 needs DBDC enabled and uses a fixed firmware band assignment for
2.4GHz and 5/6GHz BSS contexts.

Reprogram the STA dev context when the channel context is assigned so the
firmware sees the updated band_idx before the BSS is used. This avoids
stale band programming after band changes.

Co-developed-by: Javier Tia <[email protected]>
Signed-off-by: Javier Tia <[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:
Sean Wang
2026-05-28 13:32:33 +02:00
committed by Felix Fietkau
parent 79e061f30b
commit 3e55b6595d
5 changed files with 71 additions and 0 deletions
+9
View File
@@ -117,6 +117,15 @@ static int __mt7925_init_hardware(struct mt792x_dev *dev)
if (ret)
goto out;
if (is_mt7927(&dev->mt76)) {
ret = mt7925_mcu_set_dbdc(&dev->mphy, true);
if (ret) {
dev_warn(dev->mt76.dev,
"MT7927 DBDC enable failed: %d\n", ret);
ret = 0;
}
}
out:
return ret;
}