diff options
author | PaulK <contact@paulk.fr> | 2012-06-07 22:21:24 +0200 |
---|---|---|
committer | PaulK <contact@paulk.fr> | 2012-06-07 22:21:24 +0200 |
commit | 63a3609348e04a1899b69a4f95e626408497f230 (patch) | |
tree | 6db3900e020c1acf11789363b5788b84a70fd5ad | |
parent | e0685f1e0537fa92bb588133c5d0fa0fe233fb79 (diff) | |
download | external_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.c | 9 | ||||
-rw-r--r-- | samsung-ipc/device/crespo/crespo_ipc.h | 2 |
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); |