mac80211: minstrel_ht: add flag to indicate missing/inaccurate tx A-MPDU length
Some hardware (e.g. MediaTek MT7603) cannot report A-MPDU length in tx status information. Add support for a flag to indicate that, to allow minstrel_ht to use a fixed value in its internal calculation (which gives better results than just defaulting to 1). Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

gecommit door
Johannes Berg

bovenliggende
a8d418d9ac
commit
77f7ffdc33
@@ -160,9 +160,10 @@ minstrel_ht_stats_open(struct inode *inode, struct file *file)
|
||||
"lookaround %d\n",
|
||||
max(0, (int) mi->total_packets - (int) mi->sample_packets),
|
||||
mi->sample_packets);
|
||||
p += sprintf(p, "Average # of aggregated frames per A-MPDU: %d.%d\n",
|
||||
MINSTREL_TRUNC(mi->avg_ampdu_len),
|
||||
MINSTREL_TRUNC(mi->avg_ampdu_len * 10) % 10);
|
||||
if (mi->avg_ampdu_len)
|
||||
p += sprintf(p, "Average # of aggregated frames per A-MPDU: %d.%d\n",
|
||||
MINSTREL_TRUNC(mi->avg_ampdu_len),
|
||||
MINSTREL_TRUNC(mi->avg_ampdu_len * 10) % 10);
|
||||
ms->len = p - ms->buf;
|
||||
WARN_ON(ms->len + sizeof(*ms) > 32768);
|
||||
|
||||
|
Verwijs in nieuw issue
Block a user