diff options
author | Srinivas Dasari <dasaris@codeaurora.org> | 2018-01-24 19:35:19 +0530 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2018-03-30 10:53:10 -0700 |
commit | f4c59160d3891fde581a58a051fcec1db07a6beb (patch) | |
tree | b607a4f84c8073a71dbd10de895e9a7154115508 /qcwcn/wifi_hal/rssi_monitor.cpp | |
parent | 619c8b89e87de363ceaa7731cf8205b9d8a99cb6 (diff) | |
download | wlan-f4c59160d3891fde581a58a051fcec1db07a6beb.tar.gz |
WiFi-Hal: Correct the mapping of wifihal error codes
Correct the mapping of wifihal error codes.
Bug: 70872935
Change-Id: Ic8bf0e6796a4e84ec6b540a34af1e202d9501d9e
(cherry-picked from 03ef1ab7c2dc2075d7691a396fc7f2547742ede6)
Diffstat (limited to 'qcwcn/wifi_hal/rssi_monitor.cpp')
-rw-r--r-- | qcwcn/wifi_hal/rssi_monitor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qcwcn/wifi_hal/rssi_monitor.cpp b/qcwcn/wifi_hal/rssi_monitor.cpp index c55e074..20d5aa3 100644 --- a/qcwcn/wifi_hal/rssi_monitor.cpp +++ b/qcwcn/wifi_hal/rssi_monitor.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2015, The Linux Foundation. All rights reserved. +/* Copyright (c) 2015, 2018 The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -266,7 +266,7 @@ wifi_error wifi_start_rssi_monitoring(wifi_request_id id, &vCommand); if (ret != WIFI_SUCCESS) { ALOGE("%s: Initialization failed", __FUNCTION__); - return mapKernelErrortoWifiHalError(ret); + return ret; } ALOGV("%s: Max RSSI:%d Min RSSI:%d", __FUNCTION__, @@ -312,7 +312,7 @@ wifi_error wifi_start_rssi_monitoring(wifi_request_id id, cleanup: delete vCommand; - return mapKernelErrortoWifiHalError(ret); + return ret; } wifi_error wifi_stop_rssi_monitoring(wifi_request_id id, @@ -341,7 +341,7 @@ wifi_error wifi_stop_rssi_monitoring(wifi_request_id id, &vCommand); if (ret != WIFI_SUCCESS) { ALOGE("%s: Initialization failed", __FUNCTION__); - return mapKernelErrortoWifiHalError(ret); + return ret; } /* Add the vendor specific attributes for the NL command. */ @@ -368,5 +368,5 @@ wifi_error wifi_stop_rssi_monitoring(wifi_request_id id, cleanup: delete vCommand; - return mapKernelErrortoWifiHalError(ret); + return ret; } |