From f0d208f443d59e8addb5dd8bec0f9379d727c079 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Fri, 16 Jul 2021 16:50:37 +0800 Subject: [PATCH] ath11k: Update signal filled flag during sta_statistics drv --- ...gnal-filled-flag-during-sta_statisti.patch | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 package/kernel/mac80211/patches/ath11k/004-v5.13-ath11k-Update-signal-filled-flag-during-sta_statisti.patch diff --git a/package/kernel/mac80211/patches/ath11k/004-v5.13-ath11k-Update-signal-filled-flag-during-sta_statisti.patch b/package/kernel/mac80211/patches/ath11k/004-v5.13-ath11k-Update-signal-filled-flag-during-sta_statisti.patch new file mode 100644 index 000000000..6cfa1d32d --- /dev/null +++ b/package/kernel/mac80211/patches/ath11k/004-v5.13-ath11k-Update-signal-filled-flag-during-sta_statisti.patch @@ -0,0 +1,35 @@ +From f277eb0500b4ee1cbe9db8615761f19b5a5520c9 Mon Sep 17 00:00:00 2001 +From: Sriram R +Date: Wed, 24 Feb 2021 14:32:41 +0530 +Subject: [PATCH] ath11k: Update signal filled flag during sta_statistics drv + op + +Currently, though the peer rssi information is updated to station dump +from driver sta_statistics mac op, the info doesn't get updated +since the NL80211_STA_INFO_SIGNAL filled flag is not set in station +info. Hence update this flag while filling the rssi info. + +Tested on: IPQ8074 WLAN.HK.2.1.0.1-01213-QCAHKSWPL_SILICONZ-1 + +Signed-off-by: Sriram R +Signed-off-by: Kalle Valo +Link: https://lore.kernel.org/r/20210224090241.3098-1-srirrama@codeaurora.org +--- + drivers/net/wireless/ath/ath11k/mac.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c +index 3c1f35a204ba..32c7687d9ac2 100644 +--- a/drivers/net/wireless/ath/ath11k/mac.c ++++ b/drivers/net/wireless/ath/ath11k/mac.c +@@ -6082,6 +6082,7 @@ static void ath11k_mac_op_sta_statistics(struct ieee80211_hw *hw, + + /* TODO: Use real NF instead of default one. */ + sinfo->signal = arsta->rssi_comb + ATH11K_DEFAULT_NOISE_FLOOR; ++ sinfo->filled |= BIT_ULL(NL80211_STA_INFO_SIGNAL); + } + + static const struct ieee80211_ops ath11k_ops = { +-- +2.25.1 +