rtlwifi: Fix logic error in enter/exit power-save mode
authorwang yanqing <udknight@gmail.com>
Mon, 2 May 2016 16:38:36 +0000 (00:38 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 11 May 2016 18:44:07 +0000 (21:44 +0300)
commit873ffe154ae074c46ed2d72dbd9a2a99f06f55b4
tree826bc501078e260ad5973810b9010e4b84f13994
parent1bfcfdcca142f6468c665016b2b58c3012196af0
rtlwifi: Fix logic error in enter/exit power-save mode

In commit a269913c52ad ("rtlwifi: Rework rtl_lps_leave() and
rtl_lps_enter() to use work queue"), the tests for enter/exit
power-save mode were inverted. With this change applied, the
wifi connection becomes much more stable.

Fixes: a269913c52ad ("rtlwifi: Rework rtl_lps_leave() and rtl_lps_enter() to use work queue")
Signed-off-by: Wang YanQing <udknight@gmail.com>
CC: Stable <stable@vger.kernel.org> [3.10+]
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/base.c