mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7921: fix invalid remain_on_channel duration
round_jiffies_up() may change the duration reported from chip. We should
take the real timeout for current channel privilege.
Fixes: 034ae28b56f1 ("wifi: mt76: mt7921: introduce remain_on_channel support")
Signed-off-by: Deren Wu <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -174,7 +174,7 @@ mt7921_mcu_uni_roc_event(struct mt7921_dev *dev, struct sk_buff *skb)
|
||||
wake_up(&dev->phy.roc_wait);
|
||||
duration = le32_to_cpu(grant->max_interval);
|
||||
mod_timer(&dev->phy.roc_timer,
|
||||
round_jiffies_up(jiffies + msecs_to_jiffies(duration)));
|
||||
jiffies + msecs_to_jiffies(duration));
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user