staging: vt6656: fix sign of rx_dbm to bb_pre_ed_rssi.
authorMalcolm Priestley <tvboxspy@gmail.com>
Tue, 4 Feb 2020 19:34:02 +0000 (19:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 15:38:45 +0000 (16:38 +0100)
commit0a9debf10ecb680e01913f6c42de67f6c1114529
tree579328d6e51bf3c781237046c934f680a6d0c301
parenta4307700608e43dcf9b8abf1ee74f68227e9c61a
staging: vt6656: fix sign of rx_dbm to bb_pre_ed_rssi.

commit 93134df520f23f4e9998c425b8987edca7016817 upstream.

bb_pre_ed_rssi is an u8 rx_dm always returns negative signed
values add minus operator to always yield positive.

fixes issue where rx sensitivity is always set to maximum because
the unsigned numbers were always greater then 100.

Fixes: 63b9907f58f1 ("staging: vt6656: mac80211 conversion: create rx function.")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Link: https://lore.kernel.org/r/aceac98c-6e69-3ce1-dfec-2bf27b980221@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/dpc.c