]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8192u: r8192U_wx: fix negative noise and level values
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Sun, 11 Oct 2015 13:42:01 +0000 (14:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:40:48 +0000 (20:40 -0700)
commitaa46e77f3bcb09e001bfc1e4e620bde90f44ca68
treedf2b9e1947a2dc33b5fb1efda36b6cbe360a4d49
parent888ba7eb562aecf8e52c124e3ac4cf67093a2528
staging: rtl8192u: r8192U_wx: fix negative noise and level values

range->max_qual.noise and level are of type uint8, so they shouldn't be
assigned a negative number. Assigning them 0x100 - 98, and 0x100 - 78 which
are the equivalent to -98 dBm and -78 dBm, respectively, when IW_QUAL_DBM
is set.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_wx.c