libertas_tf: fix signal reporting
authorLubomir Rintel <lkundrak@v3.sk>
Sun, 10 Feb 2019 19:48:22 +0000 (20:48 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 19 Feb 2019 15:11:48 +0000 (17:11 +0200)
commitb723dbb313f09d238738dae5efd6d7c52f0fe25e
treea8fc9a29cabc8a3d55de673f44bdc5e897fb2df2
parentc7a5682ded7e68146c00f2bc30020ef0de152ece
libertas_tf: fix signal reporting

Instead of exposing the signal-to-noise ration, calculate the actual signal
level taking the noise floor into account.

Also, flip the SIGNAL_DBM bit on, so that mac80211 exposes the signal
level along with the station info in scan results. This fills
NetworkManager's "nmcli d wifi output" output with colors, bars and joy.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-by: Steve deRosier <derosier@cal-sierra.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/libertas_tf/main.c