wifi: rtw89: acpi: process 6 GHz band policy from DSM
authorZong-Zhe Yang <kevin_yang@realtek.com>
Tue, 14 Nov 2023 09:13:57 +0000 (17:13 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 22 Nov 2023 15:48:00 +0000 (17:48 +0200)
commit665ecff7dd1481c97d36d7761c0eab3b1dde3d22
treea049d55ce5621cbeba51ee9db51c4969bdae2c5f
parent2c4e9acbe3a50ab4a1a2fb5eb8258befda1764cb
wifi: rtw89: acpi: process 6 GHz band policy from DSM

Realtek ACPI DSM func 4, RTW89_ACPI_DSM_FUNC_6G_BP,
accepts a configuration via ACPI buffer as below.

| index | description   |
-------------------------
| [0-2] | signature     |
| [3]   | reserved      |
| [4]   | policy mode   |
| [5]   | country count |
| [6-]  | country list  |

Through this function, BIOS can indicate to allow/block
6 GHz on some specific countries. Still, driver should
follow regd first before taking this configuration into
account.

Besides, add a bit in debug mask for ACPI.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231114091359.50664-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/acpi.c
drivers/net/wireless/realtek/rtw89/acpi.h
drivers/net/wireless/realtek/rtw89/debug.h
drivers/net/wireless/realtek/rtw89/regd.c
drivers/net/wireless/realtek/rtw89/sar.c