diff options
author | PaulK <contact@paulk.fr> | 2012-06-07 22:23:53 +0200 |
---|---|---|
committer | PaulK <contact@paulk.fr> | 2012-06-07 22:23:53 +0200 |
commit | 9b9c03b7d3e8ed110828155169903ece3c0658d0 (patch) | |
tree | 7d41ad54e30f2310e88e72d4182e6b397f9d3725 /samsung-ipc/gprs.c | |
parent | 67bb78c3e7d0991d1f1bbd7fccf2f9986cb34c7c (diff) | |
download | external_libsamsung-ipc-9b9c03b7d3e8ed110828155169903ece3c0658d0.zip external_libsamsung-ipc-9b9c03b7d3e8ed110828155169903ece3c0658d0.tar.gz external_libsamsung-ipc-9b9c03b7d3e8ed110828155169903ece3c0658d0.tar.bz2 |
GPRS port list setup function (currently with fixed values), needed for aries
Signed-off-by: PaulK <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc/gprs.c')
-rw-r--r-- | samsung-ipc/gprs.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/samsung-ipc/gprs.c b/samsung-ipc/gprs.c index 0366712..c9edf7b 100644 --- a/samsung-ipc/gprs.c +++ b/samsung-ipc/gprs.c @@ -23,6 +23,18 @@ #include <stdlib.h> #include <assert.h> +void ipc_gprs_port_list_setup(struct ipc_gprs_port_list *message) +{ + // FIXME: These are only known-to-work values used on most devices + unsigned char bytes[] = { + 0x02, 0x04, 0x16, 0x00, 0x17, 0x00, 0x87, 0x00, 0xBD, 0x01 + }; + + memset(message->unk, 0, sizeof(message->unk)); + memcpy(message->unk, bytes, sizeof(bytes)); + +} + void ipc_gprs_define_pdp_context_setup(struct ipc_gprs_define_pdp_context *message, char *apn) { assert(message != NULL); |