]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: ACPI TAS support
authorLingbo Kong <quic_lingbok@quicinc.com>
Mon, 22 Apr 2024 03:30:50 +0000 (11:30 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 23 Apr 2024 09:29:14 +0000 (12:29 +0300)
commit576771c9fa21a38bcf390b5ecc610441574e5014
treec1fea1fe3cabbb7882449555f8c04b94ab4a0d54
parent2b00284589962c8b94a8ee584651291e86847807
wifi: ath12k: ACPI TAS support

Currently, ath12k does not support Time-Average-SAR (TAS). In order to enable
TAS read the tables from ACPI and send them to the firmware using
WMI_PDEV_SET_BIOS_INTERFACE_CMDID command. Besides, ath12k registers an ACPI
event callback so that ACPI can notify ath12k to get the updated SAR power
table and sends it to the firmware when the device state is changed.

ACPI is only enabled for WCN7850 using struct ath12k_hw_params::acpi_guid
field. Most likely QCN9274 will never support ACPI as the chip is not used in
laptops.

Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4

Signed-off-by: Lingbo Kong <quic_lingbok@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240422033054.979-2-quic_lingbok@quicinc.com
drivers/net/wireless/ath/ath12k/Makefile
drivers/net/wireless/ath/ath12k/acpi.c [new file with mode: 0644]
drivers/net/wireless/ath/ath12k/acpi.h [new file with mode: 0644]
drivers/net/wireless/ath/ath12k/core.c
drivers/net/wireless/ath/ath12k/core.h
drivers/net/wireless/ath/ath12k/hw.c
drivers/net/wireless/ath/ath12k/hw.h
drivers/net/wireless/ath/ath12k/wmi.c
drivers/net/wireless/ath/ath12k/wmi.h