--- drivers/dunmodem/dunmodem.h | 3 +++ plugins/dun.c | 8 ++++++++ 2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/drivers/dunmodem/dunmodem.h b/drivers/dunmodem/dunmodem.h index f4c54dc..3af1fec 100644 --- a/drivers/dunmodem/dunmodem.h +++ b/drivers/dunmodem/dunmodem.h @@ -19,10 +19,13 @@ * */ +#include <drivers/atmodem/atutil.h> + struct dun_data { char *dun_path; char *rfcomm; GAtChat *chat; + struct ofono_gprs_context *gc; }; void dun_netreg_init(); diff --git a/plugins/dun.c b/plugins/dun.c index 7e0b768..dff0d4c 100644 --- a/plugins/dun.c +++ b/plugins/dun.c @@ -312,6 +312,13 @@ static void dun_pre_sim(struct ofono_modem *modem) ofono_netreg_create(modem, 0, "dunmodem", data); } +static void dun_post_sim(struct ofono_modem *modem) +{ + struct dun_data *data = ofono_modem_get_data(modem); + + data->gc = ofono_gprs_context_create(modem, 0, "atmodem", data->chat); +} + static struct ofono_modem_driver dun_driver = { .name = "dun", .probe = dun_probe, @@ -319,6 +326,7 @@ static struct ofono_modem_driver dun_driver = { .enable = dun_enable, .disable = dun_disable, .pre_sim = dun_pre_sim, + .post_sim = dun_post_sim, }; static struct bluetooth_profile dun_profile = { -- 1.7.3 _______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono