projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea56583
)
mt76: mt7603: switch to a different counter for survey busy time
author
Felix Fietkau
<nbd@nbd.name>
Wed, 4 Sep 2019 19:12:10 +0000
(21:12 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Wed, 20 Nov 2019 12:23:49 +0000
(13:23 +0100)
MT_MIB_STAT_PSCCA only counts rx CCA busy time, which does not include
tx time. MT_MIB_STAT_CCA counts full busy time, including Rx, Tx and NAV
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7603/mac.c
b/drivers/net/wireless/mediatek/mt76/mt7603/mac.c
index
caa1456
..
8e6568d
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
@@
-1578,7
+1578,7
@@
void mt7603_update_channel(struct mt76_dev *mdev)
return;
state = mdev->chan_state;
- busy = mt76_rr(dev, MT_MIB_STAT_
PS
CCA);
+ busy = mt76_rr(dev, MT_MIB_STAT_CCA);
spin_lock_bh(&dev->mt76.cc_lock);
cur_time = ktime_get_boottime();