]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: rtl8821ae: fix invalid bit mask on MSR_AP check
authorLevente Kurusa <levex@linux.com>
Fri, 14 Feb 2014 21:50:23 +0000 (22:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Feb 2014 20:32:55 +0000 (12:32 -0800)
commitec97423afbd09c566fc3e756b4a6b50695dda0af
treeda7121bf310ff2104024028f244579ad4b680af2
parenta37d70eb655fdcbcd93b053d11b569cc7b1787eb
staging: rtl8821ae: fix invalid bit mask on MSR_AP check

Since MSR_AP is 0x3, ANDing it with 0xFC will never be true.
Add a NOT operation to 0xFC so that we will AND with the last
three bits which will result in a possibility that the condition
will succeed.

Signed-off-by: Levente Kurusa <levex@linux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8821ae/rtl8821ae/hw.c