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)
commit4a29213cd775cabcbe395229d175903accedbb9d
treeab5e48955ee9068a002bd469daef5d07ae3c3608
parentb7e715d3dcd2e9fa3a689ba0dd7ab85f8aaf6e9a
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: 52edbb9fb78a ("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