From af643b1989504aedeb2ddd59587e144a5a3ea528 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 27 Sep 2010 19:28:19 -0500 Subject: [PATCH] hso: Fix the username and password order QCPDPP apparently takes the password first, then username --- drivers/hsomodem/gprs-context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hsomodem/gprs-context.c b/drivers/hsomodem/gprs-context.c index e1c94ad..dc6f1b6 100644 --- a/drivers/hsomodem/gprs-context.c +++ b/drivers/hsomodem/gprs-context.c @@ -165,7 +165,7 @@ static void hso_gprs_activate_primary(struct ofono_gprs_context *gc, if (ctx->username[0] && ctx->password[0]) snprintf(buf, sizeof(buf), "AT$QCPDPP=%u,1,\"%s\",\"%s\"", - ctx->cid, ctx->username, ctx->password); + ctx->cid, ctx->password, ctx->username); else if (ctx->password[0]) snprintf(buf, sizeof(buf), "AT$QCPDPP=%u,2,,\"%s\"", ctx->cid, ctx->password); -- 2.7.4