Re: [PATCH] staging: rtl8192e: rtl_wx: fix negative noise value

2015-10-01 Thread Mateusz Kulikowski
On 30.09.2015 14:12, Luis de Bethencourt wrote: > 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 > --- >

Re: [PATCH] staging: rtl8192e: rtl_wx: fix negative noise value

2015-10-01 Thread Mateusz Kulikowski
On 30.09.2015 14:12, Luis de Bethencourt wrote: > 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 > --- >

[PATCH] staging: rtl8192e: rtl_wx: fix negative noise value

2015-09-30 Thread Luis de Bethencourt
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 --- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] staging: rtl8192e: rtl_wx: fix negative noise value

2015-09-30 Thread Luis de Bethencourt
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 --- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 2 +- 1 file