summaryrefslogtreecommitdiff
path: root/qcwcn/wifi_hal
diff options
context:
space:
mode:
authorAjit Vaishya <ajitv@codeaurora.org>2017-09-22 18:24:05 +0530
committerRoshan Pius <rpius@google.com>2018-02-05 13:17:17 -0800
commit7ad937953d38bdbc45c62f8ec0972530be5e309b (patch)
tree7260a145c1c5cb4ababa45d3c5fa6ccd27cfc4de /qcwcn/wifi_hal
parent09b3eff7c0db3868aea131583384d0675577ba05 (diff)
downloadwlan-7ad937953d38bdbc45c62f8ec0972530be5e309b.tar.gz
Wifi-HAL: Pass a non NULL message through on_alert
Framework expects a non NULL buffer for on_alert call back, without which the indication is not processed. Hence,pass a string as a buffer for on_alert. CRs-Fixed: 2089343 Change-Id: I37f948b8fe1f75f44a40579ad6a2a6bb44b9f17e Bug: 72683986 (cherry-picked from 93e8cac5d0cdb44b4479020c8425d75f07872940)
Diffstat (limited to 'qcwcn/wifi_hal')
-rw-r--r--qcwcn/wifi_hal/wifilogger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qcwcn/wifi_hal/wifilogger.cpp b/qcwcn/wifi_hal/wifilogger.cpp
index 522ea71..4e896e0 100644
--- a/qcwcn/wifi_hal/wifilogger.cpp
+++ b/qcwcn/wifi_hal/wifilogger.cpp
@@ -191,13 +191,13 @@ void push_out_all_ring_buffers(hal_info *info)
void send_alert(hal_info *info, int reason_code)
{
wifi_alert_handler handler;
-
+ char alert_msg[20] = "Fatal Event";
pthread_mutex_lock(&info->ah_lock);
handler.on_alert = info->on_alert;
pthread_mutex_unlock(&info->ah_lock);
if (handler.on_alert) {
- handler.on_alert(0, NULL, 0, reason_code);
+ handler.on_alert(0, alert_msg, strlen(alert_msg), reason_code);
}
}