OSDN Git Service

wifi: support built-in wifi drivers
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, 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

index a73b6bc..9bea70d 100644 (file)
@@ -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;
     }