Commit e9f45722 authored by Kan Yan's avatar Kan Yan Committed by chrome-bot
Browse files

BACKPORT: ath10k: report estimated frame transmit airtime to improve fairness

The airtime of a transmitted frame will be estimated from last used tx rate
which the firmware reports with the peer stats feature
(WMI_SERVICE_PEER_STATS). The airtime is computed on the tx path and it
will be reported to mac80211 upon tx completion.

This change is based on Kan's orginal commit in Chromium tree
("CHROMIUM: ath10k: Implementing airtime fairness based TX scheduler")
ref: https://chromium-review.googlesource.com/588190



Tested on QCA4019 with firmware version 10.4-3.2.1.1-00015
Tested on QCA9984 with firmware version 10.4-3.9.0.1-00005

Signed-off-by: default avatarKan Yan <kyan@google.com>
[rmanohar@codeaurora.org: ported only the airtime computation]
Signed-off-by: default avatarRajkumar Manoharan <rmanohar@codeaurora.org>
[toke@redhat.com: Rebase to mac80211-next, add test note]
Signed-off-by: default avatarToke Hiland-Jrgensen <toke@redhat.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>

BUG=b:131197056
TEST=Wifi stress and latency under load test

(cherry picked from commit d1ce37b7)

Resloved Conflicts in:
	drivers/net/wireless/ath/ath10k/mac.c
	drivers/net/wireless/ath/ath10k/txrx.c

Change-Id: I02374c2f6c8541d5690c1499974b2b07053c0f58
Reviewed-on: https://chromium-review.googlesource.com/1636901


Tested-by: default avatarKan Yan <kyan@google.com>
Tested-by: default avatarKan Yan <kyan@chromium.org>
Commit-Ready: Kan Yan <kyan@google.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: default avatarJulan Hsu <julanhsu@google.com>
Reviewed-by: default avatarKan Yan <kyan@chromium.org>
parent c30f32bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment