linux/drivers/staging/rtl8192ee
Andrey Utkin 4fb6a37c3f staging: rtl8192ee: Correct bitmask in comparsion
The issue is discovered by static checker. The proposed change (0x000c0
-> 0x000c) is likely correct because:
1. 16-bit `map` holds value coming from struct
ieee80211_vht_mcs_info.tx_mcs_map, which is described so: "TX MCS map 2
bits for each stream, total 8 streams". The changed code refers to case
of 2 TX streams, and 0x000c mask filters two bits related to the second
stream. Some codelines below 0x0003 mask is used to test first stream.
2. Mask 0x000c is used 3 more times in that place.
3. Specifying 5 digits of hex value is uncommon, especially while working
with `u16` variable. So likely the trailing zero is a typo.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=78041
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Andrey Utkin <andrey.krieger.utkin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-09 11:49:15 -07:00
..
btcoexist staging: r8192ee: avoid leaking format string 2014-06-19 17:14:45 -07:00
rtl8192ee staging: rtl8192ee: Pass large struct by const reference 2014-07-08 16:51:48 -07:00
base.c staging: rtl8192ee: Correct bitmask in comparsion 2014-07-09 11:49:15 -07:00
base.h Staging: rtl8192ee: fixed tab coding style issue in base.h 2014-06-29 14:34:42 -07:00
cam.c
cam.h
compat.h
core.c
core.h
debug.c
debug.h
efuse.c
efuse.h
Kconfig staging: Remove useless "default N" lines 2014-06-19 17:18:15 -07:00
Makefile
pci.c staging: rtl8192ee: Pass large struct by const reference 2014-07-08 16:51:48 -07:00
pci.h
ps.c
ps.h
rc.c
rc.h
regd.c
regd.h
stats.c
stats.h
TODO
wifi.h staging: rtl8192ee: Pass large struct by const reference 2014-07-08 16:51:48 -07:00