Return an error when trying to connect hidden networks
[connman] / plugins / hso.c
index 335655c..21df00d 100644 (file)
@@ -2,7 +2,7 @@
  *
  *  Connection Manager
  *
- *  Copyright (C) 2007-2008  Intel Corporation. All rights reserved.
+ *  Copyright (C) 2007-2009  Intel Corporation. All rights reserved.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License version 2 as
@@ -39,7 +39,6 @@
 
 struct hso_data {
        int index;
-       GIOChannel *channel;
        struct modem_data *modem;
 };
 
@@ -208,14 +207,11 @@ static int hso_disable(struct connman_device *device)
 
        modem_close(data->modem);
 
-       g_io_channel_shutdown(data->channel, TRUE, NULL);
-       g_io_channel_unref(data->channel);
-
        return 0;
 }
 
 static struct connman_device_driver hso_driver = {
-       .name           = "hso-device",
+       .name           = "hso",
        .type           = CONNMAN_DEVICE_TYPE_HSO,
        .probe          = hso_probe,
        .remove         = hso_remove,
@@ -247,4 +243,4 @@ static void hso_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(hso, "Option HSO device plugin", VERSION,
-                                               hso_init, hso_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, hso_init, hso_exit)