From 9b9c03b7d3e8ed110828155169903ece3c0658d0 Mon Sep 17 00:00:00 2001 From: PaulK Date: Thu, 7 Jun 2012 22:23:53 +0200 Subject: GPRS port list setup function (currently with fixed values), needed for aries Signed-off-by: PaulK --- samsung-ipc/gprs.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'samsung-ipc/gprs.c') 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 #include +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); -- cgit v1.1