The legacy one as the default wifi plugin.
CONNMAN_DEVICE_MODE_NETWORK_MULTIPLE = 2,
};
+#define CONNMAN_DEVICE_PRIORITY_LOW -100
+#define CONNMAN_DEVICE_PRIORITY_DEFAULT 0
+#define CONNMAN_DEVICE_PRIORITY_HIGH 100
+
struct connman_device;
struct connman_device *connman_device_create(const char *node,
CONNMAN_NETWORK_ERROR_CONFIGURE_FAIL = 2,
};
+#define CONNMAN_NETWORK_PRIORITY_LOW -100
+#define CONNMAN_NETWORK_PRIORITY_DEFAULT 0
+#define CONNMAN_NETWORK_PRIORITY_HIGH 100
+
struct connman_network;
struct connman_network *connman_network_create(const char *identifier,
static struct connman_network_driver network_driver = {
.name = "wifi",
.type = CONNMAN_NETWORK_TYPE_WIFI,
+ .priority = CONNMAN_NETWORK_PRIORITY_HIGH,
.probe = network_probe,
.remove = network_remove,
.connect = network_connect,
static struct connman_device_driver wifi_driver = {
.name = "wifi",
.type = CONNMAN_DEVICE_TYPE_WIFI,
+ .priority = CONNMAN_DEVICE_PRIORITY_HIGH,
.probe = wifi_probe,
.remove = wifi_remove,
.enable = wifi_enable,
static struct connman_device_driver wifi_ng_driver = {
.name = "wifi",
.type = CONNMAN_DEVICE_TYPE_WIFI,
+ .priority = CONNMAN_DEVICE_PRIORITY_LOW,
.probe = wifi_probe,
.remove = wifi_remove,
.enable = wifi_enable,
static struct connman_network_driver network_driver = {
.name = "wifi",
.type = CONNMAN_NETWORK_TYPE_WIFI,
+ .priority = CONNMAN_NETWORK_PRIORITY_LOW,
.probe = network_probe,
.remove = network_remove,
.connect = network_connect,