OSDN Git Service
(root)
/
android-x86
/
hardware-libhardware_legacy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
657b61a
)
wifi: fix unable to unload driver
marshmallow-x86
android-x86-6.0-r1
android-x86-6.0-r2
android-x86-6.0-r3
author
Chih-Wei Huang
<cwhuang@linux.org.tw>
Tue, 6 Sep 2016 17:10:03 +0000
(
01:10
+0800)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Tue, 6 Sep 2016 17:10:03 +0000
(
01:10
+0800)
wifi/wifi.c
patch
|
blob
|
history
diff --git
a/wifi/wifi.c
b/wifi/wifi.c
index
22911bb
..
4827357
100644
(file)
--- a/
wifi/wifi.c
+++ b/
wifi/wifi.c
@@
-396,11
+396,11
@@
int wifi_unload_driver()
usleep(200000); /* allow to finish interface down */
#ifdef WIFI_DRIVER_MODULE_PATH
char modname[PROPERTY_VALUE_MAX];
- if (!property_get(DRIVER_NAME_PROP, modname, NULL))
- return -1;
if (property_get("wlan.no-unload-driver", modname, NULL)
&& strcmp(modname, "1") == 0)
return 0;
+ if (!property_get(DRIVER_NAME_PROP, modname, NULL))
+ return -1;
if (rmmod(modname) == 0) {
int count = 20; /* wait at most 10 seconds for completion */