mirror of
https://github.com/sailfishos/ofono
synced 2025-12-02 15:41:03 +08:00
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.
This commit is contained in:
@@ -428,6 +428,16 @@ static void isigen_post_online(struct ofono_modem *modem)
|
|||||||
DBG("Failed to add context");
|
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 = {
|
static struct ofono_modem_driver driver = {
|
||||||
.name = "isigen",
|
.name = "isigen",
|
||||||
.probe = isigen_probe,
|
.probe = isigen_probe,
|
||||||
@@ -436,6 +446,8 @@ static struct ofono_modem_driver driver = {
|
|||||||
.pre_sim = isigen_pre_sim,
|
.pre_sim = isigen_pre_sim,
|
||||||
.post_sim = isigen_post_sim,
|
.post_sim = isigen_post_sim,
|
||||||
.post_online = isigen_post_online,
|
.post_online = isigen_post_online,
|
||||||
|
.enable = isigen_enable,
|
||||||
|
.disable = isigen_disable,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int isigen_init(void)
|
static int isigen_init(void)
|
||||||
|
|||||||
Reference in New Issue
Block a user