summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp_lcp.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-04-13 13:58:12 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-04-13 13:58:12 -0500
commit9116b7e8f8ad4576b0c7456d1911f1c490d76754 (patch)
tree4b67baf838b551226e474b3994bbb991798b9a0b /gatchat/ppp_lcp.c
parent87939c2fcf369e9fedacfd3fdc44527ad11be9e4 (diff)
downloadofono-9116b7e8f8ad4576b0c7456d1911f1c490d76754.tar.bz2
ppp: Let the upper layer handle open / up events
This removes the need for the layer_started functions in lcp and ipcp. For LCP the link is always up unless the socket has been closed, and for IPCP the link should be opened as soon as LCP is ready anyway.
Diffstat (limited to 'gatchat/ppp_lcp.c')
-rw-r--r--gatchat/ppp_lcp.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gatchat/ppp_lcp.c b/gatchat/ppp_lcp.c
index b37aae1c..daa39071 100644
--- a/gatchat/ppp_lcp.c
+++ b/gatchat/ppp_lcp.c
@@ -118,15 +118,6 @@ static void lcp_down(struct pppcp_data *pppcp)
}
/*
- * Indicate that the lower layer is now needed
- * Should trigger Up event
- */
-static void lcp_started(struct pppcp_data *pppcp)
-{
- ppp_generate_event(pppcp_get_ppp(pppcp), PPP_UP);
-}
-
-/*
* Indicate that the lower layer is not needed
* Should trigger Down event
*/
@@ -233,7 +224,6 @@ struct pppcp_proto lcp_proto = {
.supported_codes = LCP_SUPPORTED_CODES,
.this_layer_up = lcp_up,
.this_layer_down = lcp_down,
- .this_layer_started = lcp_started,
.this_layer_finished = lcp_finished,
.rca = lcp_rca,
.rcn_nak = lcp_rcn_nak,