]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: mt76: mt7915: Fix chainmask calculation on mt7915 DBDC
authorNicolas Cavallari <nicolas.cavallari@green-communications.fr>
Thu, 10 Nov 2022 15:39:51 +0000 (16:39 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 1 Dec 2022 16:29:13 +0000 (17:29 +0100)
commitde147cc28985a2a09e5d6d179fc5ef59b22fc058
tree4609b8ac590e264565632a84ca7ee6303aae1592
parent4dbcb9125cc3e10a6d879c10e4f5816d05a87c49
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: 99ad32a4ca3a ("mt76: mt7915: add support for MT7986")
Co-developed-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c