<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/net/wireless/ath/ath11k/debugfs_sta.c, branch linux-6.2.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.2.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.2.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2022-09-26T09:34:38Z</updated>
<entry>
<title>wifi: ath11k: Add support to get power save duration for each client</title>
<updated>2022-09-26T09:34:38Z</updated>
<author>
<name>Venkateswara Naralasetty</name>
<email>quic_vnaralas@quicinc.com</email>
</author>
<published>2022-09-24T13:47:12Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=710a95f955863592acdc697d4c6967285c052670'/>
<id>urn:sha1:710a95f955863592acdc697d4c6967285c052670</id>
<content type='text'>
Add support to get the following power save information through debugfs interface,

 * Current ps state of the peer
 * Time duration since the peer is in power save
 * Total duration of the peer spent in power save

Above information is helpful in debugging the issues with power save clients.

This patch also add trace log support for PS timekeeper to track the PS state
change of the peers alongs with the peer MAC address and timestamp.

Use the below commands to get the above power save information,

To know the time_since_station_in_power_save:
cat /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/stations/
XX:XX:XX:XX:XX:XX/current_ps_duration

To know power_save_duration:
cat /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/stations/
XX:XX:XX:XX:XX:XX/total_ps_duration

To reset the power_save_duration of all stations connected to AP:
echo 1 &gt; /sys/kernel/debug/ieee80211/phyX/ath11k/reset_ps_duration

To enable/disable the ps_timekeeper:
echo Y &gt; /sys/kernel/debug/ieee80211/phyX/ath11k/ps_timekeeper_enable
Y = 1 to enable and Y = 0 to disable.

To record PS timekeeer logs after enabling ps_timekeeper:
trace-cmd record -e ath11k_ps_timekeeper

Tested-on: Tested-on: IPQ8074 WLAN.HK.2.5.0.1-00991-QCAHKSWPL_SILICONZ-1

Signed-off-by: Venkateswara Naralasetty &lt;quic_vnaralas@quicinc.com&gt;
Signed-off-by: Tamizh Chelvam Raja &lt;quic_tamizhr@quicinc.com&gt;
Signed-off-by: Kalle Valo &lt;quic_kvalo@quicinc.com&gt;
Link: https://lore.kernel.org/r/20220725054601.14719-1-quic_tamizhr@quicinc.com
</content>
</entry>
<entry>
<title>ath11k: report tx bitrate for iw wlan station dump</title>
<updated>2021-12-20T18:29:01Z</updated>
<author>
<name>Wen Gong</name>
<email>quic_wgong@quicinc.com</email>
</author>
<published>2021-12-20T16:11:09Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1b8bb94c0612cf32e418e90ae93cf37214d84669'/>
<id>urn:sha1:1b8bb94c0612cf32e418e90ae93cf37214d84669</id>
<content type='text'>
HTT_T2H_MSG_TYPE_PPDU_STATS_IND is a message which include the ppdu
info, currently it is not report from firmware for ath11k, then the
tx bitrate of "iw wlan0 station dump" always show an invalid value
"tx bitrate: 6.0 MBit/s".

To address the issue, this is to parse the info of tx complete report
from firmware and indicate the tx rate to mac80211.

After that, "iw wlan0 station dump" show the correct tx bit rate such
as:
tx bitrate: 78.0 MBit/s MCS 12
tx bitrate: 144.4 MBit/s VHT-MCS 7 short GI VHT-NSS 2
tx bitrate: 286.7 MBit/s HE-MCS 11 HE-NSS 2 HE-GI 0 HE-DCM 0
tx bitrate: 1921.5 MBit/s 160MHz HE-MCS 9 HE-NSS 2 HE-GI 0 HE-DCM 0

Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1

Signed-off-by: Wen Gong &lt;quic_wgong@quicinc.com&gt;
Signed-off-by: Kalle Valo &lt;quic_kvalo@quicinc.com&gt;
Link: https://lore.kernel.org/r/20211217093722.5739-1-quic_wgong@quicinc.com
</content>
</entry>
<entry>
<title>ath11k: add HTT stats support for new stats</title>
<updated>2021-09-28T13:53:15Z</updated>
<author>
<name>Venkateswara Naralasetty</name>
<email>vnaralas@codeaurora.org</email>
</author>
<published>2021-09-28T11:00:45Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ac83b6034cfa3bec010c1e01d6e6b44673135afe'/>
<id>urn:sha1:ac83b6034cfa3bec010c1e01d6e6b44673135afe</id>
<content type='text'>
Add HTT stats support for,

29-ATH11K_DBG_HTT_EXT_STATS_PEER_CTRL_PATH_TXRX_STATS:
Used to dump the control path txrx stats for each connected peer.
Usage:
echo 29 &gt; /sys/kernel/debug/ieee80211/phyx/ath11k/htt_stats_type
cat /sys/kernel/debug/ieee80211/phyx/netdev\:wlan0/stations/
&lt;sta mac&gt;/htt_peer_stats.

31-ATH11K_DBG_HTT_EXT_STATS_PDEV_TX_RATE_TXBF_STATS:
Used to dump the per pdev tx rate txbf stats.
Usage:
echo 31 &gt; /sys/kernel/debug/ieee80211/phyx/ath11k/htt_stats_type
cat /sys/kernel/debug/ieee80211/phyx/ath11k/htt_stats

32-ATH11k_DBG_HTT_EXT_STATS_TXBF_OFDMA:
Used to dump the TXBF ofdma stats for all ofdma users.
Usage:
echo 32 &gt; /sys/kernel/debug/ieee80211/phyx/ath11k/htt_stats_type
cat /sys/kernel/debug/ieee80211/phyx/ath11k/htt_stats

37-ATH11K_DBG_HTT_EXT_PHY_COUNTERS_AND_PHY_STATS:
Used to dump the mac and phy txrx counts and phy stats like per chain rssi
and ANI level.
Usage:
echo 37 &gt; /sys/kernel/debug/ieee80211/phyx/ath11k/htt_stats_type
cat /sys/kernel/debug/ieee80211/phyx/ath11k/htt_stats

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-00486-QCAHKSWPL_SILICONZ-1

Signed-off-by: Venkateswara Naralasetty &lt;vnaralas@codeaurora.org&gt;
Signed-off-by: Jouni Malinen &lt;jouni@codeaurora.org&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210913223148.208026-6-jouni@codeaurora.org
</content>
</entry>
<entry>
<title>ath11k: debugfs: move some function declarations to correct header files</title>
<updated>2020-09-22T07:41:49Z</updated>
<author>
<name>Kalle Valo</name>
<email>kvalo@codeaurora.org</email>
</author>
<published>2020-09-16T13:55:23Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=568f06036ee23a003542227975f69a75ac172ba2'/>
<id>urn:sha1:568f06036ee23a003542227975f69a75ac172ba2</id>
<content type='text'>
Some of the function declarations are for functions in debugfs_htt_stats.c and
debugfs_sta.c, move them to corresponding header files. As debugfs_sta.h didn't
exist create it.

Also in debugfs_htt_stats.h move dunction declarations to the end of the file.

No functional changes. Compile tested only.

Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/1600264523-12939-4-git-send-email-kvalo@codeaurora.org
</content>
</entry>
<entry>
<title>ath11k: rename debug_htt_stats.[c|h] to debugfs_htt_stats.[c|h]</title>
<updated>2020-09-22T07:41:46Z</updated>
<author>
<name>Kalle Valo</name>
<email>kvalo@codeaurora.org</email>
</author>
<published>2020-09-16T13:55:22Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=56292162b9a29171d2dd2c4d533fe0e9bf8f2a34'/>
<id>urn:sha1:56292162b9a29171d2dd2c4d533fe0e9bf8f2a34</id>
<content type='text'>
For consistency with debugfs.c rename debug_htt_stats files and functions to
debugfs_htt_stats.

No functional changes. Compile tested only.

Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/1600264523-12939-3-git-send-email-kvalo@codeaurora.org
</content>
</entry>
<entry>
<title>ath11k: debugfs: use ath11k_debugfs_ prefix</title>
<updated>2020-09-22T07:41:44Z</updated>
<author>
<name>Kalle Valo</name>
<email>kvalo@codeaurora.org</email>
</author>
<published>2020-09-16T13:55:21Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=cb4e57db2ff0c8d546b3362dd0e52276d582e6e7'/>
<id>urn:sha1:cb4e57db2ff0c8d546b3362dd0e52276d582e6e7</id>
<content type='text'>
As these functions are now defined in debugfs.c change the prefix to use
ath11k_debugfs_ as well.

No functional changes. Compile tested only.

Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/1600264523-12939-2-git-send-email-kvalo@codeaurora.org
</content>
</entry>
<entry>
<title>ath11k: Add support to reset htt peer stats</title>
<updated>2020-05-06T06:15:30Z</updated>
<author>
<name>Ashok Raj Nagarajan</name>
<email>arnagara@codeaurora.org</email>
</author>
<published>2020-05-04T16:35:47Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=559ef68f5f699647b53ab193d24425308e3e9526'/>
<id>urn:sha1:559ef68f5f699647b53ab193d24425308e3e9526</id>
<content type='text'>
This patch add supports to reset the per peer htt stats.

Usage:

echo 1 &gt; /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/stations/&lt;peer MAC addr&gt;/htt_peer_stats_reset

While doing so, sync the wmi services between FW and host.

Signed-off-by: Ashok Raj Nagarajan &lt;arnagara@codeaurora.org&gt;
Signed-off-by: Tamizh Chelvam &lt;tamizhr@codeaurora.org&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/1588610147-20231-1-git-send-email-tamizhr@codeaurora.org
</content>
</entry>
<entry>
<title>ath11k: fix resource unavailability for htt stats after peer stats display</title>
<updated>2020-05-05T07:37:54Z</updated>
<author>
<name>Sowmiya Sree Elavalagan</name>
<email>ssreeela@codeaurora.org</email>
</author>
<published>2020-05-04T11:45:55Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=52f274b519939f5e306b26f2a3cf7c63ef45c203'/>
<id>urn:sha1:52f274b519939f5e306b26f2a3cf7c63ef45c203</id>
<content type='text'>
htt stats are not working after htt peer stats display
and also after htt peer stats reset. Trying to dump htt
stats shows "Resource temporarily unavailable".
This is because of "ar-&gt;debug.htt_stats.stats_req" member is being
consecutively used for all htt stats without being reset
during the previous usage. Hence assigning NULL to this member
after freeing the allocated memory fixes the issue.

console logs below:
# echo 9 &gt;/sys/kernel/debug/ath11k/ipq8074/mac1/htt_stats_type
# cat /sys/kernel/debug/ath11k/ipq8074/mac1/htt_stats_type
9
# cat /sys/kernel/debug/ath11k/ipq8074/mac1/htt_stats
cat: can't open '/sys/kernel/debug/ath11k/ipq8074/mac1/htt_stats'
: Resource temporarily unavailable

Signed-off-by: Sowmiya Sree Elavalagan &lt;ssreeela@codeaurora.org&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/1588592755-10427-1-git-send-email-ssreeela@codeaurora.org
</content>
</entry>
<entry>
<title>ath11k: Add sta debugfs support to configure ADDBA and DELBA</title>
<updated>2020-04-06T16:13:37Z</updated>
<author>
<name>Maharaja Kennadyrajan</name>
<email>mkenna@codeaurora.org</email>
</author>
<published>2020-03-26T16:36:32Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=9556dfa28b4d84edfd5b96e684ed8e7a15a51b67'/>
<id>urn:sha1:9556dfa28b4d84edfd5b96e684ed8e7a15a51b67</id>
<content type='text'>
Add support to test aggregation procedures (addba/addba_resp/delba)
manually by adding the required callbacks in sta debugfs files.

To enable automatic aggregation in target,

    echo 0 &gt; /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/
	     stations/XX:XX:XX:XX:XX:XX/aggr_mode

For manual mode,

    echo 1 &gt; /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/
	     stations/XX:XX:XX:XX:XX:XX/aggr_mode

To send addba response,
    echo 0 25 &gt; /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/
		stations/XX:XX:XX:XX:XX:XX/addba_resp

To send addba,
    echo 1 32 &gt; /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/
		stations/XX:XX:XX:XX:XX:XX/addba

To send delba,
    echo 0 1 37 &gt; /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/
		  stations/XX:XX:XX:XX:XX:XX/delba

Signed-off-by: Maharaja Kennadyrajan &lt;mkenna@codeaurora.org&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/1585213026-28406-1-git-send-email-mkenna@codeaurora.org
</content>
</entry>
<entry>
<title>ath11k: Adding proper validation before accessing tx_stats</title>
<updated>2020-03-18T11:52:42Z</updated>
<author>
<name>Pravas Kumar Panda</name>
<email>kumarpan@codeaurora.org</email>
</author>
<published>2020-03-17T11:59:29Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=fe0ebb51604f190b13b20a5f6c2821772c0cfc22'/>
<id>urn:sha1:fe0ebb51604f190b13b20a5f6c2821772c0cfc22</id>
<content type='text'>
Before dumping tx_stats proper validation was not been taken care of.
Due to which we were encountering null pointer dereference(kernel panic).
This scenario will arise when a station is getting disconnected and
we are changing the STA state by ath11k_mac_op_sta_state and assigning
tx_stats as NULL and after this the mac80211 will destroy the
debugfs entry from where we are trying to read the stats.

If anyone tries to dump tx_stats for that STA in between setting
tx_stats to NULL and debugfs file removal without checking the NULL
value it will run into a NULL pointer exception.

Proceeding with the analysis of "ARM Kernel Panic".
The APSS crash happened due to OOPS on CPU 3.
Crash Signature : Unable to handle kernel NULL pointer dereference at
virtual address 00000360
During the crash,
PC points to "ath11k_debug_htt_stats_init+0x16ac/0x1acc [ath11k]"
LR points to "ath11k_debug_htt_stats_init+0x1688/0x1acc [ath11k]".
The Backtrace obtained is as follows:
[&lt;ffffffbffcfd8590&gt;] ath11k_debug_htt_stats_init+0x16ac/0x1acc [ath11k]
[&lt;ffffffc000156320&gt;] do_loop_readv_writev+0x60/0xa4
[&lt;ffffffc000156a5c&gt;] do_readv_writev+0xd8/0x19c
[&lt;ffffffc000156b54&gt;] vfs_readv+0x34/0x48
[&lt;ffffffc00017d6f4&gt;] default_file_splice_read+0x1a8/0x2e4
[&lt;ffffffc00017c56c&gt;] do_splice_to+0x78/0x98
[&lt;ffffffc00017c63c&gt;] splice_direct_to_actor+0xb0/0x1a4
[&lt;ffffffc00017c7b4&gt;] do_splice_direct+0x84/0xa8
[&lt;ffffffc000156f40&gt;] do_sendfile+0x160/0x2a4
[&lt;ffffffc000157980&gt;] SyS_sendfile64+0xb4/0xc8

Signed-off-by: Pravas Kumar Panda &lt;kumarpan@codeaurora.org&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
</content>
</entry>
</feed>
