diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2019-12-29 11:03:06 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-02-14 10:06:03 +0100 |
commit | 5498974bd5d060e203e814789a16bb347cc5b880 (patch) | |
tree | 4ccbe410813f502f46ed5154553e47bd75fad02e /drivers/net/wireless/mediatek/mt76/mt7603/mac.c | |
parent | a3f657ec1f9ad93cf261bc4a1348b00e107eb6f9 (diff) | |
download | linux-stable-5498974bd5d060e203e814789a16bb347cc5b880.tar.gz linux-stable-5498974bd5d060e203e814789a16bb347cc5b880.tar.bz2 linux-stable-5498974bd5d060e203e814789a16bb347cc5b880.zip |
mt76: move mac_txdone tracepoint in mt76 module
Move mac_txdone tracepoint in common code in order to
be reused by mt7603 and mt7615 drivers
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7603/mac.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7603/mac.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/mac.c b/drivers/net/wireless/mediatek/mt76/mt7603/mac.c index 2a384fd0f088..8f5ca9283f7d 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/mac.c @@ -4,6 +4,7 @@ #include <linux/timekeeping.h> #include "mt7603.h" #include "mac.h" +#include "../trace.h" #define MT_PSE_PAGE_SIZE 128 @@ -1193,6 +1194,8 @@ mt7603_mac_add_txs_skb(struct mt7603_dev *dev, struct mt7603_sta *sta, int pid, if (pid < MT_PACKET_ID_FIRST) return false; + trace_mac_txdone(mdev, sta->wcid.idx, pid); + mt76_tx_status_lock(mdev, &list); skb = mt76_tx_status_skb_get(mdev, &sta->wcid, pid, &list); if (skb) { |