summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinita S. Maloo <vmaloo@codeaurora.org>2021-02-25 04:03:22 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-25 04:03:22 +0000
commit3552a81b26361149d2e518c8c2e28a8e13685637 (patch)
tree55c681bac0c3e1083e3ff3e675cd7424153f224d
parenteaced58314bed2412714bf0e0f5680c90f856add (diff)
parent62f274d2748d6d395801d315d40890d924ad5d47 (diff)
downloadwlan-3552a81b26361149d2e518c8c2e28a8e13685637.tar.gz
wifi-hal: Add support to get CCA busy time due to other nodes am: 17eda87756 am: 62f274d274
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/qcom/wlan/+/12835123 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I46c3bcbe5eddfd02d536491764f10f4486937c7e
-rw-r--r--qcwcn/wifi_hal/llstats.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qcwcn/wifi_hal/llstats.cpp b/qcwcn/wifi_hal/llstats.cpp
index e12b61f..407a6c3 100644
--- a/qcwcn/wifi_hal/llstats.cpp
+++ b/qcwcn/wifi_hal/llstats.cpp
@@ -837,6 +837,10 @@ static wifi_error get_wifi_radio_stats(wifi_radio_stat *stats,
return WIFI_ERROR_INVALID_ARGS;
}
pChStats->cca_busy_time = nla_get_u32(tb2[QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME]);
+
+ if (tb2[QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME])
+ pChStats->cca_busy_time -= nla_get_u32(tb2[QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME]);
+
}
return WIFI_SUCCESS;
}