OSDN Git Service

mac80211: implement ieee80211_tx_rate_update to update rate
authorAnilkumar Kolli <akolli@codeaurora.org>
Thu, 11 Oct 2018 12:45:03 +0000 (18:15 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 12 Oct 2018 11:05:40 +0000 (13:05 +0200)
commitf8252e7b5a83deee0e477fc1e31e3f06ceb35d28
tree0aec5d53368c62dc46a82d7643fe5ff0a07ce9e6
parent0d4e14a32dcab9c4bd559d02874120fbb86b1322
mac80211: implement ieee80211_tx_rate_update to update rate

Current mac80211 has provision to update tx status through
ieee80211_tx_status() and ieee80211_tx_status_ext(). But
drivers like ath10k updates the tx status from the skb except
txrate, txrate will be updated from a different path, peer stats.

Using ieee80211_tx_status_ext() in two different paths
(one for the stats, one for the tx rate) would duplicate
the stats instead.

To avoid this stats duplication, ieee80211_tx_rate_update()
is implemented.

Signed-off-by: Anilkumar Kolli <akolli@codeaurora.org>
[minor commit message editing, use initializers in code]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/status.c