[PATCH ath-next 00/15] wifi: ath12k: add support for 6 GHz station for various modes : LPI, SP and VLP

Baochen Qiang posted 15 patches 8 months ago
drivers/net/wireless/ath/ath12k/core.h |   6 +
drivers/net/wireless/ath/ath12k/mac.c  | 527 ++++++++++++++++++++++++++++++---
drivers/net/wireless/ath/ath12k/mac.h  |  43 +++
drivers/net/wireless/ath/ath12k/reg.c  | 209 +++++++++++--
drivers/net/wireless/ath/ath12k/reg.h  |  18 +-
drivers/net/wireless/ath/ath12k/wmi.c  | 198 +++++++------
drivers/net/wireless/ath/ath12k/wmi.h  |  62 ++++
7 files changed, 905 insertions(+), 158 deletions(-)
[PATCH ath-next 00/15] wifi: ath12k: add support for 6 GHz station for various modes : LPI, SP and VLP
Posted by Baochen Qiang 8 months ago
Currently for 6 GHz reg rules from WMI_REG_CHAN_LIST_CC_EXT_EVENTID event,
host chooses low power indoor type rule regardless of interface type or AP's
power type, which is not correct. This series change to choose proper rule
based on interface type and AP's power type.

When connecting to a 6 GHz AP, currently host sends power settings to firmware
over WMI_PDEV_PARAM_TXPOWER_LIMIT2G/WMI_PDEV_PARAM_TXPOWER_LIMIT5G commands.
Actually there is a new command WMI_VDEV_SET_TPC_POWER_CMDID with which host
can send more detailed parameter than with those two. So add support for this
interface.

Before above changes, some fix and refactor are done to do some preparation
for following patches.

Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
---
---
Baochen Qiang (15):
      wifi: ath12k: fix a possible dead lock caused by ab->base_lock
      wifi: ath12k: refactor ath12k_reg_chan_list_event()
      wifi: ath12k: refactor ath12k_reg_build_regd()
      wifi: ath12k: add support to select 6 GHz regulatory type
      wifi: ath12k: move reg info handling outside
      wifi: ath12k: store reg info for later use
      wifi: ath12k: determine interface mode in _op_add_interface()
      wifi: ath12k: update regulatory rules when interface added
      wifi: ath12k: update regulatory rules when connection established
      wifi: ath12k: save power spectral density(PSD) of regulatory rule
      wifi: ath12k: add parse of transmit power envelope element
      wifi: ath12k: save max transmit power in vdev start response event from firmware
      wifi: ath12k: fill parameters for vdev set TPC power WMI command
      wifi: ath12k: add handler for WMI_VDEV_SET_TPC_POWER_CMDID
      wifi: ath12k: use WMI_VDEV_SET_TPC_POWER_CMDID when EXT_TPC_REG_SUPPORT for 6 GHz

 drivers/net/wireless/ath/ath12k/core.h |   6 +
 drivers/net/wireless/ath/ath12k/mac.c  | 527 ++++++++++++++++++++++++++++++---
 drivers/net/wireless/ath/ath12k/mac.h  |  43 +++
 drivers/net/wireless/ath/ath12k/reg.c  | 209 +++++++++++--
 drivers/net/wireless/ath/ath12k/reg.h  |  18 +-
 drivers/net/wireless/ath/ath12k/wmi.c  | 198 +++++++------
 drivers/net/wireless/ath/ath12k/wmi.h  |  62 ++++
 7 files changed, 905 insertions(+), 158 deletions(-)
---
base-commit: d33705bb41ff786b537f8ed50a187a474db111c1
change-id: 20250401-ath12k-6g-lp-vlp-fa2ab2c7c65d

Best regards,
-- 
Baochen Qiang <quic_bqiang@quicinc.com>
Re: [PATCH ath-next 00/15] wifi: ath12k: add support for 6 GHz station for various modes : LPI, SP and VLP
Posted by Vasanthakumar Thiagarajan 7 months, 2 weeks ago

On 4/18/2025 8:25 AM, Baochen Qiang wrote:
> Currently for 6 GHz reg rules from WMI_REG_CHAN_LIST_CC_EXT_EVENTID event,
> host chooses low power indoor type rule regardless of interface type or AP's
> power type, which is not correct. This series change to choose proper rule
> based on interface type and AP's power type.
> 
> When connecting to a 6 GHz AP, currently host sends power settings to firmware
> over WMI_PDEV_PARAM_TXPOWER_LIMIT2G/WMI_PDEV_PARAM_TXPOWER_LIMIT5G commands.
> Actually there is a new command WMI_VDEV_SET_TPC_POWER_CMDID with which host
> can send more detailed parameter than with those two. So add support for this
> interface.
> 
> Before above changes, some fix and refactor are done to do some preparation
> for following patches.
> 
> Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
> ---
> ---
> Baochen Qiang (15):
>        wifi: ath12k: fix a possible dead lock caused by ab->base_lock
>        wifi: ath12k: refactor ath12k_reg_chan_list_event()
>        wifi: ath12k: refactor ath12k_reg_build_regd()
>        wifi: ath12k: add support to select 6 GHz regulatory type
>        wifi: ath12k: move reg info handling outside
>        wifi: ath12k: store reg info for later use
>        wifi: ath12k: determine interface mode in _op_add_interface()
>        wifi: ath12k: update regulatory rules when interface added
>        wifi: ath12k: update regulatory rules when connection established
>        wifi: ath12k: save power spectral density(PSD) of regulatory rule
>        wifi: ath12k: add parse of transmit power envelope element
>        wifi: ath12k: save max transmit power in vdev start response event from firmware
>        wifi: ath12k: fill parameters for vdev set TPC power WMI command
>        wifi: ath12k: add handler for WMI_VDEV_SET_TPC_POWER_CMDID
>        wifi: ath12k: use WMI_VDEV_SET_TPC_POWER_CMDID when EXT_TPC_REG_SUPPORT for 6 GHz
> 
>   drivers/net/wireless/ath/ath12k/core.h |   6 +
>   drivers/net/wireless/ath/ath12k/mac.c  | 527 ++++++++++++++++++++++++++++++---
>   drivers/net/wireless/ath/ath12k/mac.h  |  43 +++
>   drivers/net/wireless/ath/ath12k/reg.c  | 209 +++++++++++--
>   drivers/net/wireless/ath/ath12k/reg.h  |  18 +-
>   drivers/net/wireless/ath/ath12k/wmi.c  | 198 +++++++------
>   drivers/net/wireless/ath/ath12k/wmi.h  |  62 ++++
>   7 files changed, 905 insertions(+), 158 deletions(-)

Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Re: [PATCH ath-next 00/15] wifi: ath12k: add support for 6 GHz station for various modes : LPI, SP and VLP
Posted by Jeff Johnson 7 months ago
On Fri, 18 Apr 2025 10:55:33 +0800, Baochen Qiang wrote:
> Currently for 6 GHz reg rules from WMI_REG_CHAN_LIST_CC_EXT_EVENTID event,
> host chooses low power indoor type rule regardless of interface type or AP's
> power type, which is not correct. This series change to choose proper rule
> based on interface type and AP's power type.
> 
> When connecting to a 6 GHz AP, currently host sends power settings to firmware
> over WMI_PDEV_PARAM_TXPOWER_LIMIT2G/WMI_PDEV_PARAM_TXPOWER_LIMIT5G commands.
> Actually there is a new command WMI_VDEV_SET_TPC_POWER_CMDID with which host
> can send more detailed parameter than with those two. So add support for this
> interface.
> 
> [...]

Applied, thanks!

[01/15] wifi: ath12k: fix a possible dead lock caused by ab->base_lock
        commit: ef115c265a21e3c11deee7f73bd1061775a7bf20
[02/15] wifi: ath12k: refactor ath12k_reg_chan_list_event()
        commit: 9e8e55c5832d4f905d7ca306f976669d523e9ff2
[03/15] wifi: ath12k: refactor ath12k_reg_build_regd()
        commit: c96bce15c568fdb8edd29b35aeb0f20c2524108c
[04/15] wifi: ath12k: add support to select 6 GHz regulatory type
        commit: fafa6ff0823b79bfe4d1950e7bd51bb1c6dd49cf
[05/15] wifi: ath12k: move reg info handling outside
        commit: 75639b743515537b6ee56bb89c857aaf8726713a
[06/15] wifi: ath12k: store reg info for later use
        commit: eaa027a1d83f87c83f0b4138ca2427875a21b446
[07/15] wifi: ath12k: determine interface mode in _op_add_interface()
        commit: ee2fc1f7347e8393b94d35a0d2b9d24920c9b24f
[08/15] wifi: ath12k: update regulatory rules when interface added
        commit: 4c546023d71a2b175ae7dd17b42efcd5a832a1ca
[09/15] wifi: ath12k: update regulatory rules when connection established
        commit: 7ed3e88664e328bb7cda5e71568b83426b3f3289
[10/15] wifi: ath12k: save power spectral density(PSD) of regulatory rule
        commit: d6b11d0ddadb9e7addd0f582f31ae8e6c256ba9d
[11/15] wifi: ath12k: add parse of transmit power envelope element
        commit: cccbb9d0dd6ab9e3353066217e9ab5b44bd761d3
[12/15] wifi: ath12k: save max transmit power in vdev start response event from firmware
        commit: b0501a0ee772222e3a7fa5c94eb7c6b16fe20610
[13/15] wifi: ath12k: fill parameters for vdev set TPC power WMI command
        commit: aeda163bb0c7b9fc58bdd6ae90c0eef4f4050b7b
[14/15] wifi: ath12k: add handler for WMI_VDEV_SET_TPC_POWER_CMDID
        commit: 9a9e8ea7f6d31351039343e9e3b1927c61a2ccc3
[15/15] wifi: ath12k: use WMI_VDEV_SET_TPC_POWER_CMDID when EXT_TPC_REG_SUPPORT for 6 GHz
        commit: 29cb3d26d01c275ea652010cc62f324793e34a31

Best regards,
-- 
Jeff Johnson <jeff.johnson@oss.qualcomm.com>