[PATCH] staging: rtl8712: fix negative level value

2015-10-11 Thread Luis de Bethencourt
range->avg_qual.level is of type uint8, so it shouldn't be assigned a negative number. Assigning it 0x100 - 78, which is the equivalent to (20 + -98) dBm when IW_QUAL_DBM is set. Signed-off-by: Luis de Bethencourt --- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 2 +- 1 file changed, 1

[PATCH] staging: rtl8712: fix negative level value

2015-10-11 Thread Luis de Bethencourt
range->avg_qual.level is of type uint8, so it shouldn't be assigned a negative number. Assigning it 0x100 - 78, which is the equivalent to (20 + -98) dBm when IW_QUAL_DBM is set. Signed-off-by: Luis de Bethencourt --- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 2 +-