wifi: mt76: mt7921: fix country count limitation for CLC
authorMing Yen Hsieh <mingyen.hsieh@mediatek.com>
Wed, 22 Nov 2023 03:06:44 +0000 (11:06 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 11 Dec 2023 12:11:53 +0000 (13:11 +0100)
commitfa6ad88e023ddfa6c5dcdb466d159e89f451e305
treea5f8d541e365b86e7b3f33e55de0e9c0f23c11b3
parent4812ba9ab9408f3aa5bcbb4ff80ddca84611ea17
wifi: mt76: mt7921: fix country count limitation for CLC

Due to the increase in the number of power tables for 6Ghz on CLC,
the variable nr_country is no longer sufficient to represent the
total quantity. Therefore, we have switched to calculating the
length of clc buf to obtain the correct power table. Additionally,
the version number has been incremented to 1.

Fixes: 23bdc5d8cadf ("wifi: mt76: mt7921: introduce Country Location Control support")
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c