diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-11-18 16:34:06 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-11-18 18:07:10 -0600 |
commit | 0ef8ac717438f2cedd51562f40b577cebe15a25b (patch) | |
tree | cc31696f60886defc8c872a88362fdcc4e034f3d /drivers/hsomodem/gprs-context.c | |
parent | 0d099a37baa27793cb2b0d3ea01e7c5794140706 (diff) | |
download | ofono-0ef8ac717438f2cedd51562f40b577cebe15a25b.tar.bz2 |
Fix: Send username and password properly
Diffstat (limited to 'drivers/hsomodem/gprs-context.c')
-rw-r--r-- | drivers/hsomodem/gprs-context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hsomodem/gprs-context.c b/drivers/hsomodem/gprs-context.c index 52b7e911..a08dc8b1 100644 --- a/drivers/hsomodem/gprs-context.c +++ b/drivers/hsomodem/gprs-context.c @@ -145,10 +145,10 @@ static void hso_gprs_activate_primary(struct ofono_gprs_context *gc, cbd->user = gc; - if (ctx->username && ctx->password) + if (ctx->username[0] && ctx->password[0]) sprintf(buf, "AT$QCPDPP=%u,1,\"%s\",\"%s\"", ctx->cid, ctx->username, ctx->password); - else if (ctx->password) + else if (ctx->password[0]) sprintf(buf, "AT$QCPDPP=%u,2,,\"%s\"", ctx->cid, ctx->password); else |