diff options
author | Simon Busch <morphis@gravedo.de> | 2011-10-25 23:43:30 +0200 |
---|---|---|
committer | Simon Busch <morphis@gravedo.de> | 2011-10-25 23:43:30 +0200 |
commit | 8e15701431458b5832184186ad846302133999a6 (patch) | |
tree | 68b1db3ccfc7c6a7a6dffd8141b66f1f82bddb6d | |
parent | e28dc6d23162175e992ffdad105103b4562907aa (diff) | |
download | external_libsamsung-ipc-8e15701431458b5832184186ad846302133999a6.zip external_libsamsung-ipc-8e15701431458b5832184186ad846302133999a6.tar.gz external_libsamsung-ipc-8e15701431458b5832184186ad846302133999a6.tar.bz2 |
Fixup network registration message
Thanks to PaulK for pointing this out that the registration field is stored in the third
field instead of the second one.
Signed-off-by: Simon Busch <morphis@gravedo.de>
-rw-r--r-- | include/net.h | 6 | ||||
-rw-r--r-- | vapi/samsung-ipc-1.0.vapi | 9 |
2 files changed, 12 insertions, 3 deletions
diff --git a/include/net.h b/include/net.h index 969c243..444d52b 100644 --- a/include/net.h +++ b/include/net.h @@ -56,6 +56,9 @@ #define IPC_NET_REGISTRATION_STATE_UNKNOWN 0x05 #define IPC_NET_REGISTRATION_STATE_ROAMING 0x06 +#define IPC_NET_SERVICE_DOMAIN_GSM 0x02 +#define IPC_NET_SERVICE_DOMAIN_GPRS 0x03 + struct ipc_net_current_plmn { char unk0; unsigned char slevel; @@ -70,11 +73,10 @@ struct ipc_net_regist_set { unsigned char domain; } __attribute__((__packed__)); - struct ipc_net_regist { unsigned char act; // IPC_NET_ACCESS_TECHNOLOGY_... + unsigned char domain; // IPC_NET_SERVICE_DOMAIN_... unsigned char reg_state; // IPC_NET_REGISTRATION_STATE_... - unsigned char unk; // domain? unsigned char edge; unsigned short lac; unsigned int cid; diff --git a/vapi/samsung-ipc-1.0.vapi b/vapi/samsung-ipc-1.0.vapi index 8b90b3c..e027dea 100644 --- a/vapi/samsung-ipc-1.0.vapi +++ b/vapi/samsung-ipc-1.0.vapi @@ -498,12 +498,19 @@ namespace SamsungIpc AUTO, } + [CCode (cname = "gint8", cprefix = "IPC_NET_SERVICE_DOMAIN_", has_type_id = false)] + public enum ServiceDomain + { + GSM, + GPRS, + } + [CCode (cname = "struct ipc_net_regist", destroy_function = "")] public struct RegistrationMessage { public AccessTechnology act; + public ServiceDomain domain; public RegistrationState reg_state; - public uint8 unk; public uint8 edge; public uint16 lac; public uint32 cid; |