]> git.karo-electronics.de Git - linux-beck.git/commit
staging: rtl8192e: rtl_wx: fix negative noise value
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Wed, 30 Sep 2015 12:12:11 +0000 (13:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 09:48:15 +0000 (11:48 +0200)
commit86dc65b36cb55b81d1bd90b7483bea06375f5078
treebff5a815b5d32dc9f89ac87ea11f8688c1c524cb
parentb890d00e849384ed2529071ce4a8e51160de6055
staging: rtl8192e: rtl_wx: fix negative noise value

wstats->qual.noise is of type uint8, so it shouldn't be assigned a
negative number. Assigning it 0x100 - 100, which is the equivalent
to -100 dBm when IW_QUAL_DBM is set.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Tested-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_wx.c