summaryrefslogtreecommitdiff
path: root/qcwcn/wifi_hal/wificonfig.cpp
diff options
context:
space:
mode:
authorSubhani Shaik <subhanis@codeaurora.org>2017-07-21 14:34:02 -0700
committerRoshan Pius <rpius@google.com>2017-07-21 14:46:07 -0700
commitae2eb2649146456b6ebe066ced3def26dea9a842 (patch)
treed4cd49fe07c56bb66fcfae5771ed7cde569d8734 /qcwcn/wifi_hal/wificonfig.cpp
parent1906cf3d2905098937bba98222aa1a525452d391 (diff)
downloadwlan-ae2eb2649146456b6ebe066ced3def26dea9a842.tar.gz
Wifi-Hal: Over write kernel error code
The VTS fails when kernel NOT_SUPPORTED is returned for Tx power test cases on devices where the support is not enabled. Over writing the WIFI_ERROR status to framework. BUG: 63683750 Test: VTS test passes now. (cherry-picked from 4e2da13b504ef6655fc651e20abd3235b97aa658) Change-Id: Ia18f3b3ca748971551c9c12ad206c21df7837eac
Diffstat (limited to 'qcwcn/wifi_hal/wificonfig.cpp')
-rw-r--r--qcwcn/wifi_hal/wificonfig.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qcwcn/wifi_hal/wificonfig.cpp b/qcwcn/wifi_hal/wificonfig.cpp
index c9d2ed8..b0c1397 100644
--- a/qcwcn/wifi_hal/wificonfig.cpp
+++ b/qcwcn/wifi_hal/wificonfig.cpp
@@ -360,6 +360,8 @@ wifi_error wifi_set_tx_power_limit(wifi_interface_handle handle,
ret = wifiConfigCommand->requestEvent();
if (ret != 0) {
ALOGE("wifi_set_tx_power_limit(): requestEvent Error:%d", ret);
+ if (ret == -EOPNOTSUPP)
+ ret = WIFI_ERROR_NOT_SUPPORTED;
goto cleanup;
}
@@ -418,6 +420,8 @@ wifi_error wifi_reset_tx_power_limit(wifi_interface_handle handle)
ret = wifiConfigCommand->requestEvent();
if (ret != 0) {
ALOGE("wifi_set_tx_power_limit(): requestEvent Error:%d", ret);
+ if (ret == -EOPNOTSUPP)
+ ret = WIFI_ERROR_NOT_SUPPORTED;
goto cleanup;
}