summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorAki Niemi <aki.niemi@nokia.com>2010-10-11 15:41:41 +0300
committerAki Niemi <aki.niemi@nokia.com>2010-10-11 15:43:24 +0300
commit061f61398d11262b2f0727a17a3da154121c618c (patch)
tree959023bc860eb04b7f45ff1cbe846b716702f8a1 /plugins
parent7a36cbfd70c30c90d3134a384061739c3381d4cb (diff)
downloadofono-061f61398d11262b2f0727a17a3da154121c618c.tar.bz2
isigen: Add dummy ops for enable/disable
Without these the core gets confused. These are actually no-ops, since enabling and disabling aren't supported with a USB modem.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/isigen.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/isigen.c b/plugins/isigen.c
index db61fdb2..0ea2db34 100644
--- a/plugins/isigen.c
+++ b/plugins/isigen.c
@@ -428,6 +428,16 @@ static void isigen_post_online(struct ofono_modem *modem)
DBG("Failed to add context");
}
+static int isigen_enable(struct ofono_modem *modem)
+{
+ return 0;
+}
+
+static int isigen_disable(struct ofono_modem *modem)
+{
+ return 0;
+}
+
static struct ofono_modem_driver driver = {
.name = "isigen",
.probe = isigen_probe,
@@ -436,6 +446,8 @@ static struct ofono_modem_driver driver = {
.pre_sim = isigen_pre_sim,
.post_sim = isigen_post_sim,
.post_online = isigen_post_online,
+ .enable = isigen_enable,
+ .disable = isigen_disable,
};
static int isigen_init(void)