summaryrefslogtreecommitdiff
path: root/qcwcn/wifi_hal/cpp_bindings.cpp
diff options
context:
space:
mode:
authorSubhani Shaik <subhanis@codeaurora.org>2017-07-25 19:42:51 +0530
committerRoshan Pius <rpius@google.com>2017-07-27 09:55:48 -0700
commitc6e7a5e097683654a45099a22a11f9d266f6a3e3 (patch)
tree9815cf2cd5190d5380bf84f7a07926b849526635 /qcwcn/wifi_hal/cpp_bindings.cpp
parentae2eb2649146456b6ebe066ced3def26dea9a842 (diff)
downloadwlan-c6e7a5e097683654a45099a22a11f9d266f6a3e3.tar.gz
WiFi-HAL: Map kernel returned error code to wifihal error
Framework expects error codes of type wifi_error from wifihal. Map the error codes returned by kernel to wifi_error value and return the same to framework Bug: 63971485 Test: Ran VTS tests on marlin. Change-Id: Ifbb8cdb9c1177da0c6715ee2a63d4299b71f74e3
Diffstat (limited to 'qcwcn/wifi_hal/cpp_bindings.cpp')
-rw-r--r--qcwcn/wifi_hal/cpp_bindings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qcwcn/wifi_hal/cpp_bindings.cpp b/qcwcn/wifi_hal/cpp_bindings.cpp
index f67b411..36befed 100644
--- a/qcwcn/wifi_hal/cpp_bindings.cpp
+++ b/qcwcn/wifi_hal/cpp_bindings.cpp
@@ -1003,5 +1003,5 @@ wifi_error initialize_vendor_cmd(wifi_interface_handle iface,
cleanup:
delete *vCommand;
- return (wifi_error)ret;
+ return mapErrorKernelToWifiHAL(ret);
}