aboutsummaryrefslogtreecommitdiffstats
path: root/include/net.h
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2011-10-25 23:43:30 +0200
committerSimon Busch <morphis@gravedo.de>2011-10-25 23:43:30 +0200
commit8e15701431458b5832184186ad846302133999a6 (patch)
tree68b1db3ccfc7c6a7a6dffd8141b66f1f82bddb6d /include/net.h
parente28dc6d23162175e992ffdad105103b4562907aa (diff)
downloadexternal_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>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h6
1 files changed, 4 insertions, 2 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;