summaryrefslogtreecommitdiff
path: root/drivers/mbmmodem
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-12-01 16:08:12 -0600
committerDenis Kenzior <denkenz@gmail.com>2009-12-01 16:08:12 -0600
commitb96e33b6928299f02044d0ed136403bd9362e29d (patch)
tree97736860d5500f03b21923dd47ab34ce4f08843b /drivers/mbmmodem
parent184eb91aa63f85ccb5df02e1d41cae1a5c8e67db (diff)
Fix: Add username/password support to mbm context
Diffstat (limited to 'drivers/mbmmodem')
-rw-r--r--drivers/mbmmodem/gprs-context.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/mbmmodem/gprs-context.c b/drivers/mbmmodem/gprs-context.c
index f3f89261..8cf8f854 100644
--- a/drivers/mbmmodem/gprs-context.c
+++ b/drivers/mbmmodem/gprs-context.c
@@ -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)