Re: [PATCH v2 2/2] ath10k: allow dynamic SAR power limits to be configured
From: Kalle Valo <hidden>
Date: 2020-09-08 05:55:52
Wen Gong [off-list ref] wrote:
Add support for a vendor command for STATION, the command QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS which is already defined in git://w1.fi/hostap.git (src/command/qca-vendor.h). This allows user space to configure power limits for 2.4 GHz and 5 GHz bands. ath10k set pdev parameter WMI_PDEV_PARAM_TXPOWER_LIMIT2G and WMI_PDEV_PARAM_TXPOWER_LIMIT5G to firmware, the 2 value will be used as one input source to affect the tx power. When QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS set to ath10k, it will be saved the 2.4G and 5G limit value, If STATION is connected meanwhile, then the 2.4G and 5G WMI command will be set to firmware, otherwise it will not set to firmware at this moment. When STATION connect next time, it will set to firmware. Tested with QCA6174 SDIO with firmware WLAN.RMH.4.4.1-00029. Signed-off-by: Wen Gong <redacted> Signed-off-by: Kalle Valo <redacted>
The plan is to have a common API for SAR limits, not use vendor API. Patch set to Rejected. -- https://patchwork.kernel.org/patch/11686327/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches