summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qcwcn/wifi_hal/llstats.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/qcwcn/wifi_hal/llstats.cpp b/qcwcn/wifi_hal/llstats.cpp
index 17492d5..9d642a1 100644
--- a/qcwcn/wifi_hal/llstats.cpp
+++ b/qcwcn/wifi_hal/llstats.cpp
@@ -93,7 +93,6 @@ LLStatsCommand* LLStatsCommand::instance(wifi_handle handle)
void LLStatsCommand::initGetContext(u32 reqId)
{
mRequestId = reqId;
- memset(&mResultsParams, 0,sizeof(LLStatsResultsParams));
memset(&mHandler, 0,sizeof(mHandler));
}
@@ -1348,8 +1347,10 @@ wifi_error wifi_get_link_stats(wifi_request_id id,
if (ret != 0) {
ALOGE("%s: requestResponse Error:%d",__FUNCTION__, ret);
}
- if (ret < 0)
+ if (ret < 0) {
+ LLCommand->clearStats();
goto cleanup;
+ }
if (ret == 0) {
ret = LLCommand->notifyResponse();