summaryrefslogtreecommitdiffstats
path: root/libwifi_hal
diff options
context:
space:
mode:
authorAhmed ElArabawy <arabawy@google.com>2018-08-09 11:27:38 -0700
committerAhmed ElArabawy <arabawy@google.com>2018-08-10 15:21:47 +0000
commit50b3b9b0970b1967a6e4ca4c39b73a77f9b50467 (patch)
tree81bab0103ece6f1dc74b016bd96486b8fb77a97e /libwifi_hal
parentbdf34cb8d78cf2a3eaf28568fade917a1e955746 (diff)
downloadandroid_frameworks_opt_net_wifi-50b3b9b0970b1967a6e4ca4c39b73a77f9b50467.tar.gz
android_frameworks_opt_net_wifi-50b3b9b0970b1967a6e4ca4c39b73a77f9b50467.tar.bz2
android_frameworks_opt_net_wifi-50b3b9b0970b1967a6e4ca4c39b73a77f9b50467.zip
Fix the DriverTool::IsDriverLoaded()
In current implementation, the method DriverTool::IsDriverLoaded() implementation calls wifi_unload_driver() which is not right. This method is supposed to just check on the status of the driver, and not change its state. This commit changes this implementation Bug: 112425027 Test: Manual code inspection. Method not called within the code. Change-Id: Icf88a9094f6891753a6d672e41f6ada38656e011
Diffstat (limited to 'libwifi_hal')
-rw-r--r--libwifi_hal/driver_tool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libwifi_hal/driver_tool.cpp b/libwifi_hal/driver_tool.cpp
index 3089ee0a4..d4d0c1f99 100644
--- a/libwifi_hal/driver_tool.cpp
+++ b/libwifi_hal/driver_tool.cpp
@@ -53,7 +53,7 @@ bool DriverTool::UnloadDriver() {
}
bool DriverTool::IsDriverLoaded() {
- return ::wifi_unload_driver() != 0;
+ return ::is_wifi_driver_loaded() != 0;
}
bool DriverTool::IsFirmwareModeChangeNeeded(int mode) {