aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulK <contact@paulk.fr>2012-06-07 22:21:24 +0200
committerPaulK <contact@paulk.fr>2012-06-07 22:21:24 +0200
commit63a3609348e04a1899b69a4f95e626408497f230 (patch)
tree6db3900e020c1acf11789363b5788b84a70fd5ad
parente0685f1e0537fa92bb588133c5d0fa0fe233fb79 (diff)
downloadexternal_libsamsung-ipc-63a3609348e04a1899b69a4f95e626408497f230.zip
external_libsamsung-ipc-63a3609348e04a1899b69a4f95e626408497f230.tar.gz
external_libsamsung-ipc-63a3609348e04a1899b69a4f95e626408497f230.tar.bz2
GPRS interface name function for crespo
Signed-off-by: PaulK <contact@paulk.fr>
-rw-r--r--samsung-ipc/device/crespo/crespo_ipc.c9
-rw-r--r--samsung-ipc/device/crespo/crespo_ipc.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/samsung-ipc/device/crespo/crespo_ipc.c b/samsung-ipc/device/crespo/crespo_ipc.c
index 556d77c..e335a75 100644
--- a/samsung-ipc/device/crespo/crespo_ipc.c
+++ b/samsung-ipc/device/crespo/crespo_ipc.c
@@ -639,6 +639,14 @@ int crespo_ipc_power_off(void *io_data)
return 0;
}
+int crespo_ipc_gprs_get_iface(char **iface)
+{
+ asprintf(iface, GPRS_IFACE);
+
+ return 0;
+}
+
+
void *crespo_ipc_common_data_create(void)
{
void *io_data;
@@ -698,6 +706,7 @@ struct ipc_handlers crespo_default_handlers = {
.close = crespo_ipc_close,
.power_on = crespo_ipc_power_on,
.power_off = crespo_ipc_power_off,
+ .gprs_get_iface = crespo_ipc_gprs_get_iface,
.common_data = NULL,
.common_data_create = crespo_ipc_common_data_create,
.common_data_destroy = crespo_ipc_common_data_destroy,
diff --git a/samsung-ipc/device/crespo/crespo_ipc.h b/samsung-ipc/device/crespo/crespo_ipc.h
index 6ccfa52..9f286e9 100644
--- a/samsung-ipc/device/crespo/crespo_ipc.h
+++ b/samsung-ipc/device/crespo/crespo_ipc.h
@@ -28,6 +28,8 @@
#define MAX_MODEM_DATA_SIZE 0x50000
+#define GPRS_IFACE "rmnet0"
+
int wake_lock(char *lock_name, int len);
int wake_unlock(char *lock_name, int len);