mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
wifi: rtw89: fix timeout calculation in rtw89_roc_end()
[ Upstream commit e416514e30 ]
Since 'rtw89_core_tx_kick_off_and_wait()' assumes timeout
(actually RTW89_ROC_TX_TIMEOUT) in milliseconds, I suppose
that RTW89_ROC_IDLE_TIMEOUT is in milliseconds as well. If
so, 'msecs_to_jiffies()' should be used in a call to
'ieee80211_queue_delayed_work()' from 'rtw89_roc_end()'.
Compile tested only.
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231024143137.30393-1-dmantipov@yandex.ru
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8b1413dbfe
commit
7b1bb9a40b
|
|
@ -2548,7 +2548,7 @@ void rtw89_roc_end(struct rtw89_dev *rtwdev, struct rtw89_vif *rtwvif)
|
|||
|
||||
if (hw->conf.flags & IEEE80211_CONF_IDLE)
|
||||
ieee80211_queue_delayed_work(hw, &roc->roc_work,
|
||||
RTW89_ROC_IDLE_TIMEOUT);
|
||||
msecs_to_jiffies(RTW89_ROC_IDLE_TIMEOUT));
|
||||
}
|
||||
|
||||
void rtw89_roc_work(struct work_struct *work)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user