summaryrefslogtreecommitdiffstats
path: root/gatchat
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-06-29 04:03:57 -0500
committerDenis Kenzior <denkenz@gmail.com>2011-06-29 04:03:57 -0500
commite893deac59f35ea30a65f24217d565181b54c400 (patch)
tree9ffd484838a11d17c9f0959e60055ff077fd46f2 /gatchat
parent078d621033d5007b21e75d0c0f73d778c3934c3c (diff)
downloadofono-e893deac59f35ea30a65f24217d565181b54c400.tar.bz2
gsmdial: Add pfc & acfc options to gsmdial
Diffstat (limited to 'gatchat')
-rw-r--r--gatchat/gsmdial.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c
index f0b44920..578f2a49 100644
--- a/gatchat/gsmdial.c
+++ b/gatchat/gsmdial.c
@@ -57,6 +57,8 @@ static gchar *option_username = NULL;
static gchar *option_password = NULL;
static gchar *option_pppdump = NULL;
static gboolean option_bluetooth = FALSE;
+static gboolean option_acfc = FALSE;
+static gboolean option_pfc = FALSE;
static GAtPPP *ppp;
static GAtChat *control;
@@ -372,8 +374,8 @@ static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data)
g_at_ppp_set_credentials(ppp, option_username, option_password);
- g_at_ppp_set_acfc_enabled(ppp, TRUE);
- g_at_ppp_set_pfc_enabled(ppp, TRUE);
+ g_at_ppp_set_acfc_enabled(ppp, option_acfc);
+ g_at_ppp_set_pfc_enabled(ppp, option_pfc);
/* set connect and disconnect callbacks */
g_at_ppp_set_connect_function(ppp, ppp_connect, NULL);
@@ -681,6 +683,10 @@ static GOptionEntry options[] = {
"Specify PPP password" },
{ "pppdump", 'D', 0, G_OPTION_ARG_STRING, &option_pppdump,
"Specify pppdump filename" },
+ { "pfc", 0, 0, G_OPTION_ARG_NONE, &option_pfc,
+ "Use Protocol Field Compression" },
+ { "acfc", 0, 0, G_OPTION_ARG_NONE, &option_acfc,
+ "Use Address & Control Field Compression" },
{ NULL },
};