]> 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)
commit2632abdab761c3ec8508631b7bcfcf73f4eeaf22
treeab5e48955ee9068a002bd469daef5d07ae3c3608
parent651f8093fcfe0bd45722f3f78907b69e7133e507
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: adebad021a30 ("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