mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 00:26:42 +07:00
mt76: mt7603: switch to a different counter for survey busy time
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>
This commit is contained in:
parent
ea565833fd
commit
dcff8d4dc3
@ -1578,7 +1578,7 @@ void mt7603_update_channel(struct mt76_dev *mdev)
|
||||
return;
|
||||
|
||||
state = mdev->chan_state;
|
||||
busy = mt76_rr(dev, MT_MIB_STAT_PSCCA);
|
||||
busy = mt76_rr(dev, MT_MIB_STAT_CCA);
|
||||
|
||||
spin_lock_bh(&dev->mt76.cc_lock);
|
||||
cur_time = ktime_get_boottime();
|
||||
|
Loading…
Reference in New Issue
Block a user