diff options
author | Felix Fietkau <nbd@nbd.name> | 2022-11-12 21:13:07 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2022-11-12 21:13:25 +0300 |
commit | 4bf2607362fc64fc4cb7d662feb736b7536c0811 (patch) | |
tree | 9439a9811ddb4b5d4397019f42a13a42da106c19 | |
parent | 4a27f23fc4f22510db81513680666be7e72ccb61 (diff) |
Limit per-band streams to 2 instead of unconditionally dividing by 2
Fixes: 869815e5ef86 ("wifi: mt76: mt7915: Fix chainmask calculation on mt7915 DBDC")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | mt7915/eeprom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mt7915/eeprom.c b/mt7915/eeprom.c index 8bb97101..0bce0ce5 100644 --- a/mt7915/eeprom.c +++ b/mt7915/eeprom.c @@ -194,7 +194,7 @@ void mt7915_eeprom_parse_hw_cap(struct mt7915_dev *dev, nss = path; if (dev->dbdc_support) { if (is_mt7915(&dev->mt76)) { - path = path / 2; + path = min_t(u8, path, 2); nss = FIELD_GET(MT_EE_WIFI_CONF3_TX_PATH_B0, eeprom[MT_EE_WIFI_CONF + 3]); if (phy->band_idx) |