diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-04-09 13:30:56 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-04-13 12:03:32 -0500 |
commit | f5270cc9bdc68b4da8cc8a6539b29c506b1c7a50 (patch) | |
tree | 69212a269d3dcd5a3d6001eb7cbb55e1b5d98997 /gatchat/gatppp.c | |
parent | 36d15b4366823f59276c6d45ab4ad581a19c3bc4 (diff) | |
download | ofono-f5270cc9bdc68b4da8cc8a6539b29c506b1c7a50.tar.bz2 |
ppp: Use pppcp_signal functions directly
No real need to wrap them behind lcp_ functions
Diffstat (limited to 'gatchat/gatppp.c')
-rw-r--r-- | gatchat/gatppp.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c index 0215649a..4f8d8f0c 100644 --- a/gatchat/gatppp.c +++ b/gatchat/gatppp.c @@ -386,8 +386,8 @@ static void ppp_transition_phase(GAtPPP *ppp, enum ppp_phase phase) switch (phase) { case PPP_ESTABLISHMENT: - /* signal UP event to LCP */ - lcp_establish(ppp->lcp); + /* send an UP event to the lcp layer */ + pppcp_signal_up(ppp->lcp); break; case PPP_AUTHENTICATION: /* we don't do authentication right now, so send NONE */ @@ -396,7 +396,8 @@ static void ppp_transition_phase(GAtPPP *ppp, enum ppp_phase phase) /* otherwise we need to wait for the peer to send us a challenge */ break; case PPP_TERMINATION: - lcp_terminate(ppp->lcp); + /* send a CLOSE event to the lcp layer */ + pppcp_signal_close(ppp->lcp); break; case PPP_DEAD: ppp_dead(ppp); @@ -497,8 +498,8 @@ gboolean ppp_get_acfc(GAtPPP *ppp) /* Administrative Open */ void g_at_ppp_open(GAtPPP *ppp) { - /* send an OPEN event to the lcp layer */ - lcp_open(ppp->lcp); + /* send an open event to the lcp layer */ + pppcp_signal_open(ppp->lcp); } void g_at_ppp_set_credentials(GAtPPP *ppp, const char *username, |