Fix: Add username/password support to mbm context

This commit is contained in:
Denis Kenzior 2009-12-01 16:08:12 -06:00
parent 184eb91aa6
commit b96e33b692
1 changed files with 7 additions and 1 deletions

View File

@ -145,7 +145,13 @@ static void mbm_gprs_activate_primary(struct ofono_gprs_context *gc,
cbd->user = gc;
/* TODO: Handle username / password fields */
sprintf(buf, "AT*EIAAUW=%d,1,\"%s\",\"%s\"", ctx->cid,
ctx->username, ctx->password);
if (g_at_chat_send(gcd->chat, buf, none_prefix,
NULL, NULL, NULL) == 0)
goto error;
len = sprintf(buf, "AT+CGDCONT=%u,\"IP\"", ctx->cid);
if (ctx->apn)