diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-01-02 10:57:27 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-01-02 10:57:27 -0600 |
commit | 8863e7e99a555d5a2fcb3812914c2b909c8121c3 (patch) | |
tree | 31c3b854848a93eac69917b785648b23a4de07b1 /gatchat | |
parent | 5e06f070aa6b7e09d16cb20c555062f1ac11e31a (diff) | |
download | ofono-8863e7e99a555d5a2fcb3812914c2b909c8121c3.tar.bz2 |
gsmdial: Set recording after ppp_open
Diffstat (limited to 'gatchat')
-rw-r--r-- | gatchat/gsmdial.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c index a1d6421a..60e4f245 100644 --- a/gatchat/gsmdial.c +++ b/gatchat/gsmdial.c @@ -369,9 +369,6 @@ static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data) } g_at_ppp_set_debug(ppp, gsmdial_debug, "PPP"); - if (option_pppdump) - g_at_ppp_set_recording(ppp, option_pppdump); - g_at_ppp_set_credentials(ppp, option_username, option_password); g_at_ppp_set_acfc_enabled(ppp, option_acfc); @@ -383,6 +380,9 @@ static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data) /* open the ppp connection */ g_at_ppp_open(ppp, io); + + if (option_pppdump) + g_at_ppp_set_recording(ppp, option_pppdump); } static void at_cgdcont_cb(gboolean ok, GAtResult *result, gpointer user_data) |