aboutsummaryrefslogtreecommitdiffstats
path: root/include/net.h
diff options
context:
space:
mode:
authorJoerie de Gram <j.de.gram@gmail.com>2011-08-16 22:05:16 +0200
committerJoerie de Gram <j.de.gram@gmail.com>2011-08-16 22:08:09 +0200
commitcaeb3427daeefab780cbbe4c33521d45eb75de45 (patch)
treec1c1862c8bf9b7a21ad2d20f4f4b75a92de5a5fb /include/net.h
parent79e499af65d63151435f18bc45875489097d0929 (diff)
downloadhardware_replicant_libsamsung-ipc-caeb3427daeefab780cbbe4c33521d45eb75de45.tar.gz
hardware_replicant_libsamsung-ipc-caeb3427daeefab780cbbe4c33521d45eb75de45.tar.bz2
hardware_replicant_libsamsung-ipc-caeb3427daeefab780cbbe4c33521d45eb75de45.zip
net: update net_regist
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/net.h b/include/net.h
index 5f2c176..34114a4 100644
--- a/include/net.h
+++ b/include/net.h
@@ -52,6 +52,9 @@
#define MSM_NET_PLMN_STATUS_CURRENT 3
#define MSM_NET_PLMN_STATUS_FORBIDDEN 4
+#define MSM_NET_PLMN_SEL_MANUAL 0
+#define MSM_NET_PLMN_SEL_AUTO 1
+
struct msm_net_current_plmn {
char unk;
unsigned char slevel;
@@ -60,11 +63,17 @@ struct msm_net_current_plmn {
unsigned short lac;
} __attribute__((__packed__));
+struct msm_net_regist_set {
+ unsigned char net;
+ unsigned char domain;
+} __attribute__((__packed__));
+
+
struct msm_net_regist {
- unsigned char act, unk0, status, unk1;
+ unsigned char act, domain, status, edge;
unsigned short lac;
unsigned int cid;
- char unk2;
+ char rej_cause;
} __attribute__((__packed__));
struct msm_net_plmn_entry {
@@ -82,7 +91,7 @@ struct msm_net_plmn_entries {
void msm_net_current_plmn(int request_id);
void msm_net_plmn_list(int request_id);
void msm_net_identity(int request_id);
-void msm_net_regist(int request_id);
+void msm_net_regist(int request_id, unsigned char type);
#endif