iwlwifi: mvm: Fix avg-power report
authorBen Greear <greearb@candelatech.com>
Tue, 26 Nov 2019 21:47:44 +0000 (13:47 -0800)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 8 Jun 2020 09:53:53 +0000 (12:53 +0300)
commit88ad368a84d8df81c7b832a6aba3487c63019b29
tree786a5736466b792cc756cf666e1339278fa2f180
parent66d0a3b57bbe0083080682fe74236174f3cadad7
iwlwifi: mvm: Fix avg-power report

On AX200, the average power was showing positive instead of negative, but
otherwise matched the expected RSSI.  Flip the value to negative before
 giving to mac80211.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Link: https://lore.kernel.org/r/20191126214744.1283-1-greearb@candelatech.com
[removed unnecessary check and some unnecessary parentheses]
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c