qtnfmac: fix rssi data passed to wireless core
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Tue, 19 Dec 2017 11:28:52 +0000 (14:28 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 9 Jan 2018 12:11:21 +0000 (14:11 +0200)
commitfbad963a28e487bbd84ec2a82898bd91e08c97c8
tree48faf8dca9dceb5f9ac16f8b634029ef1c6250fe
parente6e594aff26ae164aaf935309a6fb8ce3cad9d4d
qtnfmac: fix rssi data passed to wireless core

Fix RSSI values passed to wireless core by qtnfmac driver:
- fix RSSI values in scan results:
  driver registers wiphy with CFG80211_SIGNAL_TYPE_MBM signal type,
  so mBm should be passed using DBM_TO_MBM macro
- accompany firmware changes fixing RSSI values in received mgmt frames
  update qlink message format and pass correct signed values to core

Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/event.c
drivers/net/wireless/quantenna/qtnfmac/qlink.h