ath11k: Fix the rx_filter flag setting for peer rssi stats
authorMaharaja Kennadyrajan <mkenna@codeaurora.org>
Wed, 11 Nov 2020 10:38:37 +0000 (16:08 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 23 Nov 2020 18:08:23 +0000 (20:08 +0200)
commit11af6de4799ee6eeae3730f18fd417414d212e2d
treecb32fe8429ce8ff2974e12d9402317f3b6b06d7a
parent9af7c32ceca85da27867dd863697d2aafc80a3f8
ath11k: Fix the rx_filter flag setting for peer rssi stats

Set the rx_filter in ath11k_mac_config_mon_status_default(),
only when the rx_filter value exists in ath11k_debug_rx_filter().

Without this change, rx_filter gets set to 0 and peer rssi stats
aren't updating properly from firmware.

Tested-on: IPQ8074 WLAN.HK.2.1.0.1-01230-QCAHKSWPL_SILICONZ-4

Fixes: ec48d28ba291 ("ath11k: Fix rx_filter flags setting for per peer rx_stats")

Signed-off-by: Maharaja Kennadyrajan <mkenna@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1605091117-11005-1-git-send-email-mkenna@codeaurora.org
drivers/net/wireless/ath/ath11k/mac.c