aboutsummaryrefslogtreecommitdiffstats
path: root/include/net.h
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2012-02-06 17:11:20 +0100
committerSimon Busch <morphis@gravedo.de>2012-02-06 18:02:31 +0100
commitd0150403961d04f83d4b663201cc18c85bc6c0ad (patch)
tree5018214ce4050a7ff1f185846a0dfdd05db9fa90 /include/net.h
parent8e12bf3ccd74b4fb81aa93864f5a96d9772bacac (diff)
downloadexternal_libsamsung-ipc-d0150403961d04f83d4b663201cc18c85bc6c0ad.zip
external_libsamsung-ipc-d0150403961d04f83d4b663201cc18c85bc6c0ad.tar.gz
external_libsamsung-ipc-d0150403961d04f83d4b663201cc18c85bc6c0ad.tar.bz2
net: add structure to set network PLMN selection mode
Signed-off-by: Simon Busch <morphis@gravedo.de>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/net.h b/include/net.h
index ff4250b..6d693b4 100644
--- a/include/net.h
+++ b/include/net.h
@@ -45,8 +45,8 @@
#define IPC_NET_PLMN_STATUS_CURRENT 0x03
#define IPC_NET_PLMN_STATUS_FORBIDDEN 0x04
-#define IPC_NET_PLMN_SEL_MANUAL 0x00
-#define IPC_NET_PLMN_SEL_AUTO 0x01
+#define IPC_NET_PLMN_SEL_MODE_MANUAL 0x03
+#define IPC_NET_PLMN_SEL_MODE_AUTO 0x02
#define IPC_NET_REGISTRATION_STATE_NONE 0x01
#define IPC_NET_REGISTRATION_STATE_HOME 0x02
@@ -88,7 +88,15 @@ struct ipc_net_mode_sel {
unsigned char mode;
} __attribute__((__packed__));
+struct ipc_net_plmn_sel {
+ unsigned char mode;
+ unsigned char plmn[5];
+ unsigned char unk0;
+ unsigned char unk1;
+} __attribute__((__packed__));
+
void ipc_net_regist_get(struct ipc_net_regist_get *message, int domain);
+void ipc_net_plmn_sel_setup(struct ipc_net_plmn_sel *message, unsigned char mode, unsigned char *plmn);
#endif