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:
6bd6922
)
wifi: support built-in wifi drivers
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, 5 May 2016 09:45:06 +0000
(17:45 +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
a73b6bc
..
9bea70d
100644
(file)
--- a/
wifi/wifi.c
+++ b/
wifi/wifi.c
@@
-297,6
+297,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;
}