From 061f61398d11262b2f0727a17a3da154121c618c Mon Sep 17 00:00:00 2001 From: Aki Niemi Date: Mon, 11 Oct 2010 15:41:41 +0300 Subject: 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. --- plugins/isigen.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) -- cgit v1.2.3