diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-06-25 00:03:45 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-06-27 12:58:13 +0200 |
commit | c5211e997eca0e3fc5c7c9e047ac6b073c3d74f4 (patch) | |
tree | f515ebf48c8df004c077f0cc176c9b3047b2ce60 /fs/qnx6 | |
parent | mt76: mt76x0: fix RF frontend initialization for external PA (diff) | |
download | linux-c5211e997eca0e3fc5c7c9e047ac6b073c3d74f4.tar.xz linux-c5211e997eca0e3fc5c7c9e047ac6b073c3d74f4.zip |
mt76: mt7603: rework and fix tx status reporting
Tx status reporting on mt7603 has a number of issues:
- the hardware can alter the first rate index, but it is not reported to
the driver
- probing is very imprecise, because it alters the per-client rate set,
but only considers info->status.rates for rate selection of a single probe
packet
- short/long GI selection has limitations, which are not accurately reported
to mac80211
- if rates are changed while packets are in flight, tx status reports for
the old rate set might be processed based on the new selection
This led to very suboptimal rate selection with minstrel_ht.
This patch completely reworks tx status reporting to get rid of these
limitations:
- Store the previous and current rate set in the driver + the TSF value
at the time of the switch.
- Use the tx status TSF value to determine which rate set needs to be used
as reference.
- Report only short or long GI rates for a single status event, not a mix.
- The hardware reports the last used rate index. Use it along with the
retry count to figure out what rate was used for the first attempt.
- Use the same retry count value for all rate slots to make this calculation
work.
- Derive the probe rate from the current rateset instead of the skb cb
- Do not wait for a status report for the probe frame before removing the
probe rate from the rate table. Do it immediately after it was referenced
in a tx status report.
- Use the first half of the first rate retry budget for the probe rate
in order to avoid using too many retries on that rate
With this patch, throughput under bad link conditions is improved
significantly, and there is a lot less rate fluctuation going on.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'fs/qnx6')
0 files changed, 0 insertions, 0 deletions