rtlwifi: rtl8821ae: Fix an expression that is always false
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 8 Jul 2015 15:18:50 +0000 (10:18 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Jul 2015 14:58:41 +0000 (17:58 +0300)
commit251086f588720277a6f5782020a648ce32c4e00b
tree8a0a2801942cb02bade5e98a568e62c28bfdc73e
parentcae761b5a6bdc597ba476a040fdcd5b4bc559b85
rtlwifi: rtl8821ae: Fix an expression that is always false

In routine _rtl8821ae_set_media_status(), an incorrect mask results in a test
for AP status to always be false. Similar bugs were fixed in rtl8192cu and
rtl8192de, but this instance was missed at that time.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org> [3.18+]
Cc: David Binderman <dcb314@hotmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rtlwifi/rtl8821ae/hw.c
drivers/net/wireless/rtlwifi/rtl8821ae/reg.h