提交 de147cc2 编写于 作者: N Nicolas Cavallari 提交者: Felix Fietkau

wifi: mt76: mt7915: Fix chainmask calculation on mt7915 DBDC

mt7915 does not have a per-band number of chains unlike the other chips,
it only has a total number of chains.  Yet the current code would
consider the total number as a per-band number.

For example, it would report that a 2x2 + 2x2 DBDC card have 4 chains on
each band and set chainmask to 0b1111 for the first interface and
0b11110000 for the second.

Fixes: 99ad32a4 ("mt76: mt7915: add support for MT7986")
Co-developed-by: NFelix Fietkau <nbd@nbd.name>
Signed-off-by: NNicolas Cavallari <nicolas.cavallari@green-communications.fr>
Signed-off-by: NFelix Fietkau <nbd@nbd.name>
上级 4dbcb912
...@@ -194,6 +194,7 @@ void mt7915_eeprom_parse_hw_cap(struct mt7915_dev *dev, ...@@ -194,6 +194,7 @@ void mt7915_eeprom_parse_hw_cap(struct mt7915_dev *dev,
nss = path; nss = path;
if (dev->dbdc_support) { if (dev->dbdc_support) {
if (is_mt7915(&dev->mt76)) { if (is_mt7915(&dev->mt76)) {
path = min_t(u8, path, 2);
nss = FIELD_GET(MT_EE_WIFI_CONF3_TX_PATH_B0, nss = FIELD_GET(MT_EE_WIFI_CONF3_TX_PATH_B0,
eeprom[MT_EE_WIFI_CONF + 3]); eeprom[MT_EE_WIFI_CONF + 3]);
if (phy->band_idx) if (phy->band_idx)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册