Add option for selecting WiFi/Supplicant driver from command line
[connman] / plugins / supplicant.c
index 6019bec..70af60a 100644 (file)
@@ -33,6 +33,7 @@
 
 #define CONNMAN_API_SUBJECT_TO_CHANGE
 #include <connman/device.h>
+#include <connman/option.h>
 #include <connman/dbus.h>
 #include <connman/log.h>
 
@@ -260,7 +261,7 @@ done:
 
 static int add_interface(struct supplicant_task *task)
 {
-       const char *driver = "wext";
+       const char *driver = connman_option_get_string("wifi");
        DBusMessage *message;
        DBusMessageIter array, dict;
        DBusPendingCall *call;
@@ -831,7 +832,8 @@ static struct {
        { "2wire"     },
        { "compaq"    },
        { "tsunami"   },
-       { "comcomcom" },
+       { "comcomcom", "3com"     },
+       { "3Com",      "3com"     },
        { "Symbol",    "symbol"   },
        { "Wireless" , "wireless" },
        { "WLAN",      "wlan"     },