summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-09-15 17:42:06 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-09-20 15:14:16 +0200
commitc818549e6ed14df4ae83ec120fe0731ed2b6ea19 (patch)
treed3af207e4cc8155976f0c97535649e4029e94482 /plugins
parentcbb031b7308e800149f76537fc7ccbd1a40a0735 (diff)
downloadconnman-c818549e6ed14df4ae83ec120fe0731ed2b6ea19.tar.gz
connman-c818549e6ed14df4ae83ec120fe0731ed2b6ea19.tar.bz2
connman-c818549e6ed14df4ae83ec120fe0731ed2b6ea19.zip
Prioritize wifi plugins
The legacy one as the default wifi plugin.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/wifi-legacy.c2
-rw-r--r--plugins/wifi.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/wifi-legacy.c b/plugins/wifi-legacy.c
index eb7dd83e..4c775b98 100644
--- a/plugins/wifi-legacy.c
+++ b/plugins/wifi-legacy.c
@@ -81,6 +81,7 @@ static int network_disconnect(struct connman_network *network)
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,
@@ -181,6 +182,7 @@ static int wifi_scan(struct connman_device *device)
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,
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 8986233b..67b0323b 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -250,6 +250,7 @@ static int wifi_scan(struct connman_device *device)
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,
@@ -586,6 +587,7 @@ static int network_disconnect(struct connman_network *network)
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,