rtlwifi: rtl_pci: Fix the bug when inactiveps is enabled.
authorTsang-Shian Lin <thlin@realtek.com>
Sat, 9 Dec 2017 17:37:10 +0000 (11:37 -0600)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 14 Dec 2017 12:43:03 +0000 (14:43 +0200)
commitb7573a0a27bfa8270dea9b145448f6884b7cacc1
tree4d83e6095b1d5961c6cbcbb264f8e056422e6584
parente298be2a97fda6182237fe1160db45750aeaf2f1
rtlwifi: rtl_pci: Fix the bug when inactiveps is enabled.

Reset the driver current tx read/write index to zero when inactiveps
nic out of sync with HW state. Wrong driver tx read/write index will
cause Tx fail.

Signed-off-by: Tsang-Shian Lin <thlin@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/pci.c