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:
67a2e78
)
wifi: support built-in wifi drivers
lollipop-x86
author
Chih-Wei Huang
<cwhuang@linux.org.tw>
Fri, 27 Jun 2014 09:52:33 +0000
(17:52 +0800)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Thu, 12 Mar 2015 03:47:55 +0000
(11:47 +0800)
If a wifi interface is found but no module name,
assume it's built-in and just return ok.
wifi/wifi.c
patch
|
blob
|
history
diff --git
a/wifi/wifi.c
b/wifi/wifi.c
index
ae8be5b
..
0cd9bcd
100644
(file)
--- a/
wifi/wifi.c
+++ b/
wifi/wifi.c
@@
-273,6
+273,8
@@
int is_wifi_driver_loaded() {
if (!cnt) {
if (get_driver_info(modname))
cnt = strlen(modname);
+ else if (property_get("wlan.interface", line, NULL))
+ return 1; // found an interface without modname, assume built-in
else
goto unloaded;
}