Debug logs:
wifi up
[ 5705.071309] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5705.071350] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5705.083249] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5705.083343] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5705.083825] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5705.084330] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5705.084629] ath11k c000000.wifi: mac add interface id 0 type 1 subtype 0 map 3ffffffff
[ 5705.084653] ath11k c000000.wifi: vdev a4:97:33:df:a3:38 created, vdev_id 0
[ 5705.114670] ath11k c000000.wifi: mac stop soc 11d scan
[ 5705.114740] ath11k c000000.wifi: defer protection mode setup, vdev is not ready yet
[ 5705.114751] ath11k c000000.wifi: Set slottime: 1 for VDEV: 0
[ 5705.114765] ath11k c000000.wifi: Set preamble: 1 for VDEV: 0
[ 5705.115935] br-lan: port 5(phy0-ap0) entered blocking state
[ 5705.115972] br-lan: port 5(phy0-ap0) entered disabled state
[ 5705.120525] device phy0-ap0 entered promiscuous mode
[ 5705.125985] br-lan: port 5(phy0-ap0) entered blocking state
[ 5705.131080] br-lan: port 5(phy0-ap0) entered forwarding state
[ 5705.136872] br-lan: port 5(phy0-ap0) entered disabled state
[ 5705.530150] ath11k c000000.wifi: txpower from firmware 48, reported 24 dBm
[ 5705.530393] ath11k c000000.wifi: mac chanctx add freq 5500 width 3 ptr 00000000f0a0b2d2
[ 5705.530411] ath11k c000000.wifi: mac chanctx assign ptr 00000000f0a0b2d2 vdev_id 0
[ 5705.530423] ath11k c000000.wifi: mac vdev 0 start center_freq 5500 phymode 11ax-he80
[ 5705.547404] ath11k c000000.wifi: vdev a4:97:33:df:a3:38 started, vdev_id 0
[ 5705.547426] ath11k c000000.wifi: mac vdev_id 0 txpower 30
[ 5705.547436] ath11k c000000.wifi: txpower to set in hw 30
[ 5705.547449] ath11k c000000.wifi: mac chanctx change freq 5500 width 3 ptr 00000000f0a0b2d2 changed 2
[ 5705.547462] ath11k c000000.wifi: mac chanctx change freq 5500 width 3 ptr 00000000f0a0b2d2 changed 4
[ 5705.547788] ath11k c000000.wifi: vdev a4:97:33:df:a3:38 stopped, vdev_id 0
[ 5705.547800] ath11k c000000.wifi: mac vdev 0 start center_freq 5500 phymode 11ax-he80
[ 5705.563283] ath11k c000000.wifi: vdev a4:97:33:df:a3:38 started, vdev_id 0
[ 5705.563309] ath11k c000000.wifi: Beacon interval: 100 set for VDEV: 0
[ 5705.563322] ath11k c000000.wifi: Set staggered beacon mode for VDEV: 0
[ 5705.563347] ath11k c000000.wifi: Set BA BUFFER SIZE 256 for VDEV: 0
[ 5705.563358] ath11k c000000.wifi: DTIM period: 2 set for VDEV: 0
[ 5705.563381] ath11k c000000.wifi: mac vdev 0 up
[ 5705.563389] ath11k c000000.wifi: mac vdev_id 0 txpower 30
[ 5705.563397] ath11k c000000.wifi: txpower to set in hw 30
[ 5705.563409] ath11k c000000.wifi: mac obss pd sr_ctrl 3 non_srg_thres 0 srg_max 0
[ 5705.563430] ath11k c000000.wifi: bss color param 0xa000000 set on vdev 0
[ 5705.563484] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-ap0: link becomes ready
[ 5705.563651] br-lan: port 5(phy0-ap0) entered blocking state
[ 5705.568926] br-lan: port 5(phy0-ap0) entered forwarding state
[ 5705.574672] ath11k c000000.wifi: Set CTS prot: 0 for VDEV: 0
[ 5705.574688] ath11k c000000.wifi: Set slottime: 2 for VDEV: 0
[ 5705.574699] ath11k c000000.wifi: Set preamble: 2 for VDEV: 0
[ 5705.574853] ath11k c000000.wifi: mac tx mgmt frame, buf id 0
[ 5705.574871] ath11k c000000.wifi: mac tx mgmt frame, vdev_id 0
iwinfo
[ 5708.129682] ath11k c000000.wifi: txpower from firmware 48, reported 24 dBm
[ 5708.130652] ath11k c000000.wifi: txpower from firmware 48, reported 24 dBm
[ 5708.131296] ath11k c000000.wifi: txpower from firmware 48, reported 24 dBm
[ 5708.131869] ath11k c000000.wifi: txpower from firmware 48, reported 24 dBm
[ 5708.132400] ath11k c000000.wifi: txpower from firmware 48, reported 24 dBm
[ 5708.132943] ath11k c000000.wifi: txpower from firmware 48, reported 24 dBm
[ 5708.133471] ath11k c000000.wifi: txpower from firmware 48, reported 24 dBm
[ 5708.134492] ath11k c000000.wifi: txpower from firmware 48, reported 24 dBm
[ 5708.135282] ath11k c000000.wifi: txpower from firmware 48, reported 24 dBm
[ 5708.137168] ath11k c000000.wifi: txpower from firmware 48, reported 24 dBm
[ 5708.138676] ath11k c000000.wifi: txpower from firmware 48, reported 24 dBm
[ 5708.139209] ath11k c000000.wifi: txpower from firmware 48, reported 24 dBm
[ 5708.145733] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.146715] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.147140] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.147495] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.147811] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.148385] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.148700] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.149268] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.149575] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.149838] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.150190] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.150463] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.151955] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.152890] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.153236] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5708.153496] ath11k c000000.wifi: txpower from firmware NaN, reported -2147483648 dBm
[ 5711.535514] ath11k c000000.wifi: Set staggered beacon mode for VDEV: 0
[ 5711.535559] ath11k c000000.wifi: Set BA BUFFER SIZE 256 for VDEV: 0
[ 5711.535570] ath11k c000000.wifi: DTIM period: 2 set for VDEV: 0
[ 5711.535633] ath11k c000000.wifi: Set CTS prot: 0 for VDEV: 0
[ 5711.535646] ath11k c000000.wifi: Set preamble: 2 for VDEV: 0
Is it possible that WMI_PDEV_PARAM_TXPOWER_LIMIT5G
is not setting the value correctly?
Here is a patch where in the case of 6GHz txpower is set with WMI_VDEV_SET_TPC_POWER_CMDID
: https://patchwork.kernel.org/project/linux-wireless/patch/20220913051518.23051-14-quic_wgong@quicinc.com/