Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f4fe17b authored by Felix Fietkau's avatar Felix Fietkau Committed by Johannes Berg
Browse files

mac80211/minstrel_ht: show the number of retries for each rate in debugfs

parent 3e4d40fa
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ minstrel_ht_stats_open(struct inode *inode, struct file *file)
	file->private_data = ms;
	p = ms->buf;
	p += sprintf(p, "type         rate     throughput  ewma prob   this prob  "
			"this succ/attempt   success    attempts\n");
			"retry   this succ/attempt   success    attempts\n");
	for (i = 0; i < MINSTREL_MAX_STREAMS * MINSTREL_STREAM_GROUPS; i++) {
		char htmode = '2';
		char gimode = 'L';
@@ -72,10 +72,11 @@ minstrel_ht_stats_open(struct inode *inode, struct file *file)
			eprob = MINSTREL_TRUNC(mr->probability * 1000);

			p += sprintf(p, "      %6u.%1u   %6u.%1u    %6u.%1u    "
					"%3u(%3u)   %8llu    %8llu\n",
					"%3u            %3u(%3u)  %8llu    %8llu\n",
					tp / 10, tp % 10,
					eprob / 10, eprob % 10,
					prob / 10, prob % 10,
					mr->retry_count,
					mr->last_success,
					mr->last_attempts,
					(unsigned long long)mr->succ_hist,