From 30e2a0f4d0eaf632b357c1b1fd17730c932c6e63 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 5 Apr 2013 09:43:38 +0200 Subject: mbm: don't pass (null) as string when either user or password is empty E.g. instead of: (ttyACM1): --> 'AT*EIAAUW=2,1,"(null)","vodafone"' (ttyACM1): <-- 'OK' Better pass: (ttyACM1): --> 'AT*EIAAUW=2,1,"","vodafone"' (ttyACM1): <-- 'OK' --- plugins/mbm/mm-broadband-bearer-mbm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/mbm/mm-broadband-bearer-mbm.c b/plugins/mbm/mm-broadband-bearer-mbm.c index 56c68ff8..f7374757 100644 --- a/plugins/mbm/mm-broadband-bearer-mbm.c +++ b/plugins/mbm/mm-broadband-bearer-mbm.c @@ -394,8 +394,8 @@ authenticate (Dial3gppContext *ctx) command = g_strdup_printf ("AT*EIAAUW=%d,1,\"%s\",\"%s\"", ctx->cid, - encoded_user, - encoded_password); + encoded_user ? encoded_user : "", + encoded_password ? encoded_password : ""); mm_base_modem_at_command_full (ctx->modem, ctx->primary, @@ -410,6 +410,7 @@ authenticate (Dial3gppContext *ctx) return; } + mm_dbg ("Authentication not needed"); activate (ctx); } -- cgit v1.2.3