summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBapiraju Alla <balla@codeaurora.org>2021-10-21 02:36:01 -0700
committerHsiu-Chang Chen <hsiuchangchen@google.com>2021-11-15 17:38:14 +0800
commit8fb0dab4b25b5a2d924e4129a699293d2bb462be (patch)
treec0338ab9871fcacc15fd51603370ebe0666ebf25
parent7d64bb27df5bbb978262e372c43a605333d8687e (diff)
downloadqcacld-8fb0dab4b25b5a2d924e4129a699293d2bb462be.tar.gz
qcacld-3.0: Change log level to info from fatal
Currently, WOW wake up event is logging the critical messages using the fatal log level. These logs are not fatal but critical to know the reason of the WOW wakeup. Change the WOW critical log level from fatal to info. Bug: 201822893 Test: Regression test Signed-off-by: Hsiu-Chang Chen <hsiuchangchen@google.com> Change-Id: I2cd7c316fc0b1e2df3e50478ffb77881f285ea4b CRs-Fixed: 3059415
-rw-r--r--core/wma/src/wma_features.c98
1 files changed, 49 insertions, 49 deletions
diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c
index e74be1efdb..477ca7663d 100644
--- a/core/wma/src/wma_features.c
+++ b/core/wma/src/wma_features.c
@@ -1697,39 +1697,39 @@ static void wma_inc_wow_stats(t_wma_handle *wma,
static void wma_wow_stats_display(struct wake_lock_stats *stats)
{
- WMA_LOGA("WLAN wake reason counters:");
- WMA_LOGA("uc:%d bc:%d v4_mc:%d v6_mc:%d ra:%d ns:%d na:%d "
- "icmp:%d icmpv6:%d",
- stats->ucast_wake_up_count,
- stats->bcast_wake_up_count,
- stats->ipv4_mcast_wake_up_count,
- stats->ipv6_mcast_wake_up_count,
- stats->ipv6_mcast_ra_stats,
- stats->ipv6_mcast_ns_stats,
- stats->ipv6_mcast_na_stats,
- stats->icmpv4_count,
- stats->icmpv6_count);
-
- WMA_LOGA("assoc:%d disassoc:%d assoc_resp:%d reassoc:%d "
- "reassoc_resp:%d auth:%d deauth:%d action:%d",
- stats->mgmt_assoc,
- stats->mgmt_disassoc,
- stats->mgmt_assoc_resp,
- stats->mgmt_reassoc,
- stats->mgmt_reassoc_resp,
- stats->mgmt_auth,
- stats->mgmt_deauth,
- stats->mgmt_action);
-
- WMA_LOGA("pno_match:%d pno_complete:%d gscan:%d "
- "low_rssi:%d rssi_breach:%d oem:%d scan_11d:%d",
- stats->pno_match_wake_up_count,
- stats->pno_complete_wake_up_count,
- stats->gscan_wake_up_count,
- stats->low_rssi_wake_up_count,
- stats->rssi_breach_wake_up_count,
- stats->oem_response_wake_up_count,
- stats->scan_11d);
+ wma_nofl_info("WLAN wake reason counters:");
+ wma_nofl_info("uc:%d bc:%d v4_mc:%d v6_mc:%d ra:%d ns:%d na:%d "
+ "icmp:%d icmpv6:%d",
+ stats->ucast_wake_up_count,
+ stats->bcast_wake_up_count,
+ stats->ipv4_mcast_wake_up_count,
+ stats->ipv6_mcast_wake_up_count,
+ stats->ipv6_mcast_ra_stats,
+ stats->ipv6_mcast_ns_stats,
+ stats->ipv6_mcast_na_stats,
+ stats->icmpv4_count,
+ stats->icmpv6_count);
+
+ wma_nofl_info("assoc:%d disassoc:%d assoc_resp:%d reassoc:%d "
+ "reassoc_resp:%d auth:%d deauth:%d action:%d",
+ stats->mgmt_assoc,
+ stats->mgmt_disassoc,
+ stats->mgmt_assoc_resp,
+ stats->mgmt_reassoc,
+ stats->mgmt_reassoc_resp,
+ stats->mgmt_auth,
+ stats->mgmt_deauth,
+ stats->mgmt_action);
+
+ wma_nofl_info("pno_match:%d pno_complete:%d gscan:%d "
+ "low_rssi:%d rssi_breach:%d oem:%d scan_11d:%d",
+ stats->pno_match_wake_up_count,
+ stats->pno_complete_wake_up_count,
+ stats->gscan_wake_up_count,
+ stats->low_rssi_wake_up_count,
+ stats->rssi_breach_wake_up_count,
+ stats->oem_response_wake_up_count,
+ stats->scan_11d);
}
static void wma_print_wow_stats(t_wma_handle *wma,
@@ -2542,13 +2542,13 @@ static void wma_wow_dump_mgmt_buffer(uint8_t *wow_packet_buffer,
uint8_t to_from_ds, frag_num;
uint32_t seq_num;
- wma_err("RA: " QDF_MAC_ADDR_STR " TA: " QDF_MAC_ADDR_STR,
- QDF_MAC_ADDR_ARRAY(wh->i_addr1),
- QDF_MAC_ADDR_ARRAY(wh->i_addr2));
+ wma_nofl_info("RA: " QDF_MAC_ADDR_STR " TA: " QDF_MAC_ADDR_STR,
+ QDF_MAC_ADDR_ARRAY(wh->i_addr1),
+ QDF_MAC_ADDR_ARRAY(wh->i_addr2));
- WMA_LOGE("TO_DS: %u, FROM_DS: %u",
- wh->i_fc[1] & IEEE80211_FC1_DIR_TODS,
- wh->i_fc[1] & IEEE80211_FC1_DIR_FROMDS);
+ wma_nofl_info("TO_DS: %u, FROM_DS: %u",
+ wh->i_fc[1] & IEEE80211_FC1_DIR_TODS,
+ wh->i_fc[1] & IEEE80211_FC1_DIR_FROMDS);
to_from_ds = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK;
@@ -2558,19 +2558,19 @@ static void wma_wow_dump_mgmt_buffer(uint8_t *wow_packet_buffer,
QDF_MAC_ADDR_ARRAY(wh->i_addr3));
break;
case IEEE80211_FC1_DIR_TODS:
- wma_err("DA: " QDF_MAC_ADDR_STR,
- QDF_MAC_ADDR_ARRAY(wh->i_addr3));
+ wma_nofl_info("DA: " QDF_MAC_ADDR_STR,
+ QDF_MAC_ADDR_ARRAY(wh->i_addr3));
break;
case IEEE80211_FC1_DIR_FROMDS:
- wma_err("SA: " QDF_MAC_ADDR_STR,
- QDF_MAC_ADDR_ARRAY(wh->i_addr3));
+ wma_nofl_info("SA: " QDF_MAC_ADDR_STR,
+ QDF_MAC_ADDR_ARRAY(wh->i_addr3));
break;
case IEEE80211_FC1_DIR_DSTODS:
if (buf_len >= sizeof(struct ieee80211_frame_addr4))
- wma_err("DA: " QDF_MAC_ADDR_STR " SA: "
- QDF_MAC_ADDR_STR,
- QDF_MAC_ADDR_ARRAY(wh->i_addr3),
- QDF_MAC_ADDR_ARRAY(wh->i_addr4));
+ wma_nofl_info("DA: " QDF_MAC_ADDR_STR " SA: "
+ QDF_MAC_ADDR_STR,
+ QDF_MAC_ADDR_ARRAY(wh->i_addr3),
+ QDF_MAC_ADDR_ARRAY(wh->i_addr4));
break;
}
@@ -2581,8 +2581,8 @@ static void wma_wow_dump_mgmt_buffer(uint8_t *wow_packet_buffer,
IEEE80211_SEQ_FRAG_MASK) >>
IEEE80211_SEQ_FRAG_SHIFT);
- WMA_LOGE("SEQ_NUM: %u, FRAG_NUM: %u",
- seq_num, frag_num);
+ wma_nofl_info("SEQ_NUM: %u, FRAG_NUM: %u",
+ seq_num, frag_num);
} else {
WMA_LOGE("Insufficient buffer length for mgmt. packet");
}