mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: make mt76_update_survey() per phy
Reduce duplicated survey for DBDC. Signed-off-by: Ryder Lee <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+4
-4
@@ -1584,12 +1584,12 @@ trigger:
|
||||
return true;
|
||||
}
|
||||
|
||||
void mt7603_update_channel(struct mt76_dev *mdev)
|
||||
void mt7603_update_channel(struct mt76_phy *mphy)
|
||||
{
|
||||
struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76);
|
||||
struct mt7603_dev *dev = container_of(mphy->dev, struct mt7603_dev, mt76);
|
||||
struct mt76_channel_state *state;
|
||||
|
||||
state = mdev->phy.chan_state;
|
||||
state = mphy->chan_state;
|
||||
state->cc_busy += mt76_rr(dev, MT_MIB_STAT_CCA);
|
||||
}
|
||||
|
||||
@@ -1806,7 +1806,7 @@ void mt7603_mac_work(struct work_struct *work)
|
||||
mutex_lock(&dev->mt76.mutex);
|
||||
|
||||
dev->mphy.mac_work_count++;
|
||||
mt76_update_survey(&dev->mt76);
|
||||
mt76_update_survey(&dev->mphy);
|
||||
mt7603_edcca_check(dev);
|
||||
|
||||
for (i = 0, idx = 0; i < 2; i++) {
|
||||
|
||||
Reference in New Issue
Block a user