wifi: mt76: mt792x: add the illegal value check for mtcl table of acpi
authorMing Yen Hsieh <mingyen.hsieh@mediatek.com>
Thu, 11 Jan 2024 06:18:56 +0000 (14:18 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 22 Feb 2024 08:55:19 +0000 (09:55 +0100)
commit926f9fb7df9edd94b13bb8b5c6d5ee12d94e3429
treea57d7727df0a343a8ec0f58c80aca57b8ddce14c
parent1f01276b7ab8e9af348bb8fe70613746867e763d
wifi: mt76: mt792x: add the illegal value check for mtcl table of acpi

The mtcl table provided regulatory information for 5.9/6Ghz channels and
configured by platform venders. So, sometimes vendors may write illegal
values, and therefore it is necessary to check and add corresponding
handling for such cases.

Signed-off-by: Leon Yen <leon.yen@mediatek.com>
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.c