OSDN Git Service

wifi: support built-in wifi drivers lollipop-x86
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 27 Jun 2014 09:52:33 +0000 (17:52 +0800)
committerChih-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

index ae8be5b..0cd9bcd 100644 (file)
@@ -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;
     }