]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mt76: mt7925: fix country count limitation for CLC
authorMing Yen Hsieh <mingyen.hsieh@mediatek.com>
Thu, 16 Jan 2025 06:21:31 +0000 (14:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:40 +0000 (10:15 +0200)
commit0dd6c62c1370918eb5c38b00cb0ca1b64a9c9302
treed9c93b14472202ba605053676c431b3600f023ac
parent1706a07b38ae061ca42acfa004d0d49d1f1fe786
wifi: mt76: mt7925: fix country count limitation for CLC

commit 6458d760a0c0afd2fda11e83ed3e1125a252432f upstream.

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.

Cc: stable@vger.kernel.org
Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips")
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Link: https://patch.msgid.link/20250116062131.3860198-1-mingyen.hsieh@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c