|
@@ -2214,14 +2214,22 @@ __wma_unified_link_radio_stats_event_handler(tp_wma_handle wma_handle,
|
|
uint8_t *info;
|
|
uint8_t *info;
|
|
uint32_t stats_len = 0;
|
|
uint32_t stats_len = 0;
|
|
int ret;
|
|
int ret;
|
|
-
|
|
|
|
struct mac_context *mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
struct mac_context *mac = cds_get_context(QDF_MODULE_ID_PE);
|
|
|
|
+ struct wma_ini_config *cfg = wma_get_ini_handle(wma_handle);
|
|
|
|
+ bool exclude_selftx_from_cca_busy;
|
|
|
|
|
|
if (!mac) {
|
|
if (!mac) {
|
|
wma_debug("NULL mac ptr. Exiting");
|
|
wma_debug("NULL mac ptr. Exiting");
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!cfg) {
|
|
|
|
+ wma_err("NULL WMA ini handle");
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ exclude_selftx_from_cca_busy = cfg->exclude_selftx_from_cca_busy;
|
|
|
|
+
|
|
if (!mac->sme.link_layer_stats_cb) {
|
|
if (!mac->sme.link_layer_stats_cb) {
|
|
wma_debug("HDD callback is null");
|
|
wma_debug("HDD callback is null");
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
@@ -2385,6 +2393,10 @@ __wma_unified_link_radio_stats_event_handler(tp_wma_handle wma_handle,
|
|
}
|
|
}
|
|
|
|
|
|
for (count = 0; count < radio_stats->num_channels; count++) {
|
|
for (count = 0; count < radio_stats->num_channels; count++) {
|
|
|
|
+ if (exclude_selftx_from_cca_busy)
|
|
|
|
+ channel_stats->cca_busy_time -=
|
|
|
|
+ channel_stats->tx_time;
|
|
|
|
+
|
|
ret = qdf_scnprintf(info + stats_len,
|
|
ret = qdf_scnprintf(info + stats_len,
|
|
WMI_MAX_RADIO_STATS_LOGS - stats_len,
|
|
WMI_MAX_RADIO_STATS_LOGS - stats_len,
|
|
" %d[%d][%d][%d]",
|
|
" %d[%d][%d][%d]",
|