OSDN Git Service

wifi: support built-in wifi drivers
[android-x86/hardware-libhardware_legacy.git] / wifi / wifi.c
index ecd6333..8fb30e4 100644 (file)
@@ -255,6 +255,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;
     }