diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2012-07-04 19:15:27 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2012-07-04 19:15:27 +0200 |
commit | 174a1f2d0a1d16021004d50b926f0fe014759020 (patch) | |
tree | 13e99a7ff5ab8a0c7f56380cdd8b89b07cb7a1c7 /samsung-ipc/device | |
parent | 776839085031611b9d48ddeca529b1931c01dd22 (diff) | |
download | external_libsamsung-ipc-174a1f2d0a1d16021004d50b926f0fe014759020.zip external_libsamsung-ipc-174a1f2d0a1d16021004d50b926f0fe014759020.tar.gz external_libsamsung-ipc-174a1f2d0a1d16021004d50b926f0fe014759020.tar.bz2 |
Aries/Crespo: Added GPRS capabilities handler
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc/device')
-rw-r--r-- | samsung-ipc/device/aries/aries_ipc.c | 12 | ||||
-rw-r--r-- | samsung-ipc/device/crespo/crespo_ipc.c | 11 |
2 files changed, 23 insertions, 0 deletions
diff --git a/samsung-ipc/device/aries/aries_ipc.c b/samsung-ipc/device/aries/aries_ipc.c index fb4ec77..4e065ef 100644 --- a/samsung-ipc/device/aries/aries_ipc.c +++ b/samsung-ipc/device/aries/aries_ipc.c @@ -911,6 +911,17 @@ int aries_ipc_gprs_get_iface(char **iface) return -1; } +int aries_ipc_gprs_get_capabilities(struct ipc_client_gprs_capabilities *cap) +{ + if (cap == NULL) + return -1; + + cap->port_list = 1; + cap->cid_max = 3; + + return 0; +} + void *aries_ipc_common_data_create(void) { struct aries_ipc_handlers_common_data *common_data; @@ -992,6 +1003,7 @@ struct ipc_handlers aries_default_handlers = { .gprs_activate = aries_ipc_gprs_activate, .gprs_deactivate = aries_ipc_gprs_deactivate, .gprs_get_iface = aries_ipc_gprs_get_iface, + .gprs_get_capabilities = aries_ipc_gprs_get_capabilities, .common_data = NULL, .common_data_create = aries_ipc_common_data_create, .common_data_destroy = aries_ipc_common_data_destroy, diff --git a/samsung-ipc/device/crespo/crespo_ipc.c b/samsung-ipc/device/crespo/crespo_ipc.c index e335a75..a25c7c7 100644 --- a/samsung-ipc/device/crespo/crespo_ipc.c +++ b/samsung-ipc/device/crespo/crespo_ipc.c @@ -646,6 +646,16 @@ int crespo_ipc_gprs_get_iface(char **iface) return 0; } +int crespo_ipc_gprs_get_capabilities(struct ipc_client_gprs_capabilities *cap) +{ + if (cap == NULL) + return -1; + + cap->port_list = 0; + cap->cid_max = 1; + + return 0; +} void *crespo_ipc_common_data_create(void) { @@ -707,6 +717,7 @@ struct ipc_handlers crespo_default_handlers = { .power_on = crespo_ipc_power_on, .power_off = crespo_ipc_power_off, .gprs_get_iface = crespo_ipc_gprs_get_iface, + .gprs_get_capabilities = crespo_ipc_gprs_get_capabilities, .common_data = NULL, .common_data_create = crespo_ipc_common_data_create, .common_data_destroy = crespo_ipc_common_data_destroy, |