Fix: Send username and password properly

This commit is contained in:
Denis Kenzior 2009-11-18 16:34:06 -06:00
parent 0d099a37ba
commit 0ef8ac7174
1 changed files with 2 additions and 2 deletions

View File

@ -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