Skip to content

Commit a8480ad

Browse files
committed
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. https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next.git/commit/?id=88ad368a84d8df81c7b832a6aba3487c63019b29
1 parent 9a1ea2e commit a8480ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4750,7 +4750,7 @@ static void iwl_mvm_mac_sta_statistics(struct ieee80211_hw *hw,
47504750
struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta);
47514751

47524752
if (mvmsta->avg_energy) {
4753-
sinfo->signal_avg = mvmsta->avg_energy;
4753+
sinfo->signal_avg = -(s8)mvmsta->avg_energy;
47544754
sinfo->filled |= BIT_ULL(NL80211_STA_INFO_SIGNAL_AVG);
47554755
}
47564756

0 commit comments

Comments
 (0)