wifi: mt76: mt7915: fix tlv length of mt7915_mcu_get_chan_mib_info
authorRyder Lee <ryder.lee@mediatek.com>
Wed, 26 Jul 2023 18:35:05 +0000 (02:35 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 31 Jul 2023 08:56:28 +0000 (10:56 +0200)
commit4f1875c288dfc1ccea81fc17fef1d30c9d8498b2
tree4be83fbc0362471d69e3cb8861cc00fb5f02ca4f
parent3bb014c72b087fa1d440d1b83cb3dfcfc4d24cff
wifi: mt76: mt7915: fix tlv length of mt7915_mcu_get_chan_mib_info

Correct per-device TLV lengths to avoid invalid operation in firmware.
(  64.040375:28:STATS-E)statsGetSingleHWCounter: MIB counter index = 65472 not supported.
This happens on mt7916/mt7986.

Fixes: b0bfa00595be ("wifi: mt76: mt7915: improve accuracy of time_busy calculation")
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c