]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: rtw89: pci: correct TX resource checking in low power mode
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 24 Aug 2022 06:33:12 +0000 (14:33 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 2 Sep 2022 08:37:03 +0000 (11:37 +0300)
commit713155040ba7e136e48f03f4af0db15862b7e4b3
treeab5e48955ee9068a002bd469daef5d07ae3c3608
parentbf4e76b35b751662fefbf15f77744a6eb74dca18
wifi: rtw89: pci: correct TX resource checking in low power mode

Number of TX resource must be minimum of TX_BD and TX_WD. Only considering
TX_BD could drop TX packets pulled from mac80211 if TX_WD is unavailable.

Fixes: 77a30216fc28 ("rtw89: ps: access TX/RX rings via another registers in low power mode")
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220824063312.15784-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c