diff options
| author | Kapil Gupta <kapgupta@codeaurora.org> | 2016-08-16 21:46:36 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-08-23 12:39:34 +0530 |
| commit | 2057bcae261a2cd514faa4f17609207111b7f19d (patch) | |
| tree | 0e5c4692d2dc3d33178bf8669baa9c605618ac1d | |
| parent | 0abff79cda9c254ff7ab7e5419df6fe828090d7d (diff) | |
qcacld-2.0: Report log completion for unsupported ring id
Add changes to report log completion to framework if ring buffer
id does not belongs to driver.
CRs-Fixed: 1054865
Change-Id: I651af5d1dea59d43b0929db173ce5377057ac014
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_cfg80211.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index 6c69482d0884..c9597258c8da 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -9327,13 +9327,11 @@ static int __wlan_hdd_cfg80211_wifi_logger_get_ring_data(struct wiphy *wiphy, if (ring_id == RING_ID_PER_PACKET_STATS) { wlan_logging_set_per_pkt_stats(); hddLog(LOG1, FL("Flushing/Retrieving packet stats")); - } - - /* - * As part of DRIVER ring ID, flush both driver and firmware logs. - * For other Ring ID's driver doesn't have any rings to flush - */ - if (ring_id == RING_ID_DRIVER_DEBUG) { + } else if (ring_id == RING_ID_DRIVER_DEBUG) { + /* + * As part of DRIVER ring ID, flush both driver and fw logs. + * For other Ring ID's driver doesn't have any rings to flush + */ hddLog(LOG1, FL("Bug report triggered by framework")); ret = vos_flush_logs(WLAN_LOG_TYPE_NON_FATAL, @@ -9344,7 +9342,9 @@ static int __wlan_hdd_cfg80211_wifi_logger_get_ring_data(struct wiphy *wiphy, hddLog(LOGE, FL("Failed to trigger bug report")); return -EINVAL; } - } + } else + wlan_report_log_completion(FALSE, WLAN_LOG_INDICATOR_FRAMEWORK, + WLAN_LOG_REASON_CODE_UNUSED); return 0; } |
