diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-09 21:37:14 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-12 16:58:59 -0400 |
commit | 6d7b97b23e114c8fbb825e6721164d228c1af3fc (patch) | |
tree | 8682f55f680c4272c24dcad4b47d241a76c25e52 /drivers/net/mace.c | |
parent | a065784620a2b78a2bbd00e066c004644d227ea8 (diff) |
ath5k: fix tx status reporting issues
During normal operation, minstrel was showing suspicious EWMA probabilities
exceeding 100%. It looks like the tx status reporting in ath5k was not
properly clearing the rate index for rates which were never attempted.
This is caused by uninitialized stale data in the on-stack tx status
information, which is reused when more frames are received.
To fix this, rely on ts->ts_final_idx to select the last attempted rate,
instead of checking whether ts->ts_rate is set.
Additionally, the conversion from the driver rate index back to the
mac80211 rate index can be dropped, as the mac80211 tx status will still
have the original rate index which was used to set up the descriptor.
Additionally, one more inaccuracy was fixed - the final rate attempt
count only needs to be increased by one if the transmission attempt was
successful.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/mace.c')
0 files changed, 0 insertions, 0 deletions