mirror of git://git.sysmocom.de/ofono
cdmamodem: Update to the new GAtPPP API
This commit is contained in:
parent
17deacbfff
commit
6d5b7d0bff
|
@ -131,7 +131,7 @@ static gboolean setup_ppp(struct ofono_cdma_connman *cm)
|
||||||
g_at_chat_suspend(cd->chat);
|
g_at_chat_suspend(cd->chat);
|
||||||
|
|
||||||
/* open ppp */
|
/* open ppp */
|
||||||
cd->ppp = g_at_ppp_new_from_io(io);
|
cd->ppp = g_at_ppp_new();
|
||||||
|
|
||||||
if (cd->ppp == NULL) {
|
if (cd->ppp == NULL) {
|
||||||
g_at_chat_resume(cd->chat);
|
g_at_chat_resume(cd->chat);
|
||||||
|
@ -146,7 +146,7 @@ static gboolean setup_ppp(struct ofono_cdma_connman *cm)
|
||||||
g_at_ppp_set_disconnect_function(cd->ppp, ppp_disconnect, cm);
|
g_at_ppp_set_disconnect_function(cd->ppp, ppp_disconnect, cm);
|
||||||
|
|
||||||
/* open the ppp connection */
|
/* open the ppp connection */
|
||||||
g_at_ppp_open(cd->ppp);
|
g_at_ppp_open(cd->ppp, io);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue