diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-05-24 07:49:41 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-05-24 11:47:46 -0500 |
commit | cccf76cfdf65fbd2ca1544f4ff34b758c5225951 (patch) | |
tree | 01efb1ddd3544f2d8604baf62f92ea4d9cbf0ca0 /gatchat/test-server.c | |
parent | 004cb21f98266792348b5ca0459113b4ff8da7e3 (diff) | |
download | ofono-cccf76cfdf65fbd2ca1544f4ff34b758c5225951.tar.bz2 |
test-server: Remove legacy code
The previous thinking was to use the PPP stack to send Conf-Naks with
some delay to client requests until the IP configuration was setup
correctly. However, we now hide this by using the delay during the
processing of the ATD. This code is no longer relevant.
Diffstat (limited to 'gatchat/test-server.c')
-rw-r--r-- | gatchat/test-server.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gatchat/test-server.c b/gatchat/test-server.c index 21d3a6b2..33372c8a 100644 --- a/gatchat/test-server.c +++ b/gatchat/test-server.c @@ -151,16 +151,6 @@ static void ppp_disconnect(GAtPPPDisconnectReason reason, gpointer user) data_mode = FALSE; } -static gboolean update_ppp(gpointer user) -{ - GAtPPP *ppp = user; - - g_at_ppp_set_server_info(ppp, "192.168.1.2", - "10.10.10.10", "10.10.10.11"); - - return FALSE; -} - static void setup_ppp(gpointer user) { GAtServer *server = user; @@ -184,8 +174,8 @@ static void setup_ppp(gpointer user) /* set connect and disconnect callbacks */ g_at_ppp_set_connect_function(ppp, ppp_connect, server); g_at_ppp_set_disconnect_function(ppp, ppp_disconnect, server); - - g_idle_add(update_ppp, ppp); + g_at_ppp_set_server_info(ppp, "192.168.1.2", + "10.10.10.10", "10.10.10.11"); } static void cgmi_cb(GAtServer *server, GAtServerRequestType type, |