projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
184eb91
)
Fix: Add username/password support to mbm context
author
Denis Kenzior
<denkenz@gmail.com>
Tue, 1 Dec 2009 22:08:12 +0000
(16:08 -0600)
committer
Denis Kenzior
<denkenz@gmail.com>
Tue, 1 Dec 2009 22:08:12 +0000
(16:08 -0600)
drivers/mbmmodem/gprs-context.c
patch
|
blob
|
history
diff --git
a/drivers/mbmmodem/gprs-context.c
b/drivers/mbmmodem/gprs-context.c
index
f3f8926
..
8cf8f85
100644
(file)
--- 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)