wifi: rtw89: regd: handle policy of 6 GHz SP according to BIOS
authorZong-Zhe Yang <kevin_yang@realtek.com>
Fri, 12 Apr 2024 11:57:29 +0000 (19:57 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 18 Apr 2024 01:11:19 +0000 (09:11 +0800)
commit5a84cc87635029a8fa589328daa6c2b532e28c09
tree875d18d51c500eca0c77153026e424a2c90a68b6
parentd03aeddf34ca0e2fbb6b9b81d1d11728e1b364f5
wifi: rtw89: regd: handle policy of 6 GHz SP according to BIOS

According to BIOS configuration of Realtek ACPI DSM function 7,
RTW89_ACPI_DSM_FUNC_6GHZ_SP_SUP, we handle the regd policy of 6 GHz SP.

If BIOS indicates to override driver settings, we only allow the countries,
which are enabled by BIOS, to use 6 GHz SP power. Other countries will be
applied to select default power when recalculating 6 GHz regulatory power
selection.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/20240412115729.8316-9-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/regd.c