Peter Seiderer
042f8d5a13
mac80211: minstrel_ht: fix where rate stats are stored (fixes debugfs output)
...
[ Upstream commit 5c6dd7bd56
]
Using an ath9k card the debugfs output of minstrel_ht looks like the following
(note the zero values for the first four rates sum-of success/attempts):
best ____________rate__________ ____statistics___ _____last____ ______sum-of________
mode guard # rate [name idx airtime max_tp] [avg(tp) avg(prob)] [retry|suc|att] [#success | #attempts]
OFDM 1 DP 6.0M 272 1640 5.2 3.1 53.8 3 0 0 0 0
OFDM 1 C 9.0M 273 1104 7.7 4.6 53.8 4 0 0 0 0
OFDM 1 B 12.0M 274 836 10.0 6.0 53.8 4 0 0 0 0
OFDM 1 A S 18.0M 275 568 14.3 8.5 53.8 5 0 0 0 0
OFDM 1 S 24.0M 276 436 18.1 0.0 0.0 5 0 1 80 1778
OFDM 1 36.0M 277 300 24.9 0.0 0.0 0 0 1 0 107
OFDM 1 S 48.0M 278 236 30.4 0.0 0.0 0 0 0 0 75
OFDM 1 54.0M 279 212 33.0 0.0 0.0 0 0 0 0 72
Total packet count:: ideal 16582 lookaround 885
Average # of aggregated frames per A-MPDU: 1.0
Debugging showed that the rate statistics for the first four rates where
stored in the MINSTREL_CCK_GROUP instead of the MINSTREL_OFDM_GROUP because
in minstrel_ht_get_stats() the supported check was not honoured as done in
various other places, e.g net/mac80211/rc80211_minstrel_ht_debugfs.c:
74 if (!(mi->supported[i] & BIT(j)))
75 continue;
With the patch applied the output looks good:
best ____________rate__________ ____statistics___ _____last____ ______sum-of________
mode guard # rate [name idx airtime max_tp] [avg(tp) avg(prob)] [retry|suc|att] [#success | #attempts]
OFDM 1 D 6.0M 272 1640 5.2 5.2 100.0 3 0 0 1 1
OFDM 1 C 9.0M 273 1104 7.7 7.7 100.0 4 0 0 38 38
OFDM 1 B 12.0M 274 836 10.0 9.9 89.5 4 2 2 372 395
OFDM 1 A P 18.0M 275 568 14.3 14.3 97.2 5 52 53 6956 7181
OFDM 1 S 24.0M 276 436 18.1 0.0 0.0 0 0 1 6 163
OFDM 1 36.0M 277 300 24.9 0.0 0.0 0 0 1 0 35
OFDM 1 S 48.0M 278 236 30.4 0.0 0.0 0 0 0 0 38
OFDM 1 S 54.0M 279 212 33.0 0.0 0.0 0 0 0 0 38
Total packet count:: ideal 7097 lookaround 287
Average # of aggregated frames per A-MPDU: 1.0
Signed-off-by: Peter Seiderer <ps.report@gmx.net >
Link: https://lore.kernel.org/r/20220404165414.1036-1-ps.report@gmx.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2022-06-09 10:22:31 +02:00
..
2021-03-16 21:20:41 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-04-19 12:01:40 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-03-16 21:20:41 +01:00
2019-06-19 17:09:55 +02:00
2021-12-22 09:32:42 +01:00
2022-03-19 13:47:48 +01:00
2020-09-18 11:36:03 +02:00
2022-03-28 09:58:45 +02:00
2021-06-23 11:29:14 +02:00
2020-12-11 12:51:55 +01:00
2020-02-24 10:35:57 +01:00
2021-06-23 18:12:00 +02:00
2021-06-23 18:12:00 +02:00
2021-06-23 18:12:00 +02:00
2021-02-01 15:07:09 +01:00
2021-12-22 09:32:34 +01:00
2019-06-05 17:37:16 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-06-23 18:06:44 +02:00
2021-06-23 11:29:13 +02:00
2021-08-13 09:58:25 +02:00
2022-04-08 14:23:28 +02:00
2021-11-25 09:48:34 +01:00
2021-01-28 09:29:34 +02:00
2021-05-11 20:12:51 +02:00
2021-05-11 20:12:51 +02:00
2021-06-23 11:29:12 +02:00
2021-12-08 09:04:38 +01:00
2022-04-08 14:23:28 +02:00
2021-01-22 09:11:37 +01:00
2021-06-23 12:36:32 +02:00
2022-01-11 15:35:13 +01:00
2021-06-23 12:36:32 +02:00
2021-09-23 13:25:09 +02:00
2019-06-19 17:09:55 +02:00
2022-04-08 14:23:28 +02:00
2022-01-11 15:35:13 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2022-05-18 10:26:47 +02:00
2019-06-19 17:09:55 +02:00
2020-09-28 13:18:53 +02:00
2021-01-26 11:55:50 +01:00
2021-09-23 12:59:29 +02:00
2020-04-24 11:30:13 +02:00
2021-02-12 08:58:11 +01:00
2022-06-09 10:22:31 +02:00
2021-02-12 08:58:22 +01:00
2022-05-25 09:57:35 +02:00
2021-11-18 19:16:25 +01:00
2021-05-31 21:39:10 +02:00
2021-01-21 13:39:11 +01:00
2021-08-13 09:50:43 +02:00
2021-12-22 09:32:34 +01:00
2021-08-24 10:30:43 +02:00
2021-06-23 11:00:17 +02:00
2020-01-15 09:52:12 +01:00
2019-07-08 20:57:08 -07:00
2019-03-29 11:20:36 +01:00
2021-08-24 10:30:43 +02:00
2021-12-22 09:32:34 +01:00
2022-04-08 14:23:28 +02:00
2021-01-21 13:45:13 +01:00
2020-02-07 12:40:34 +01:00
2020-02-07 12:40:34 +01:00
2021-11-25 09:48:47 +01:00
2019-06-19 17:09:55 +02:00
2021-09-27 11:59:49 +02:00
2019-06-19 17:09:55 +02:00