diff options
author | Christopher Wiley <wiley@google.com> | 2016-08-30 01:08:25 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-08-30 01:08:25 +0000 |
commit | 76035eec6ec9ced54716dbbffb8ec9a2927dc655 (patch) | |
tree | 1079fa744ca1b9c0342ba150a15bc1a21ad67507 /qcwcn/wifi_hal/wifi_hal.cpp | |
parent | 8d6294eb21f8d7dd91b2e0d3551f45a9e3ac161a (diff) | |
parent | f71b2eb448ef4f1052211ed0f800e10e8469f2dc (diff) | |
download | wlan-76035eec6ec9ced54716dbbffb8ec9a2927dc655.tar.gz |
Do not start/stop the driver in HAL start
am: f71b2eb448
Change-Id: I06ead37bc4b8f65031d7d39b9e0ea87334da97e1
Diffstat (limited to 'qcwcn/wifi_hal/wifi_hal.cpp')
-rw-r--r-- | qcwcn/wifi_hal/wifi_hal.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/qcwcn/wifi_hal/wifi_hal.cpp b/qcwcn/wifi_hal/wifi_hal.cpp index 64c0143..ee86a5d 100644 --- a/qcwcn/wifi_hal/wifi_hal.cpp +++ b/qcwcn/wifi_hal/wifi_hal.cpp @@ -42,8 +42,6 @@ #define LOG_TAG "WifiHAL" -#include "hardware_legacy/wifi.h" - #include "wifi_hal.h" #include "common.h" #include "cpp_bindings.h" @@ -353,7 +351,6 @@ wifi_error init_wifi_vendor_hal_func_table(wifi_hal_fn *fn) { wifi_error wifi_initialize(wifi_handle *handle) { int err = 0; - bool driver_loaded = false; wifi_error ret = WIFI_SUCCESS; wifi_interface_handle iface_handle; struct nl_sock *cmd_sock = NULL; @@ -462,15 +459,6 @@ wifi_error wifi_initialize(wifi_handle *handle) goto unload; } - if (!is_wifi_driver_loaded()) { - ret = (wifi_error)wifi_load_driver(); - if(ret != WIFI_SUCCESS) { - ALOGE("%s Failed to load wifi driver : %d\n", __func__, ret); - goto unload; - } - driver_loaded = true; - } - ret = wifi_init_interfaces(*handle); if (ret != WIFI_SUCCESS) { ALOGE("Failed to init interfaces"); @@ -582,8 +570,6 @@ unload: } } - if (driver_loaded) - wifi_unload_driver(); return ret; } |