summaryrefslogtreecommitdiff
path: root/cleopatre
diff options
context:
space:
mode:
authorlefranc2010-06-24 07:48:04 +0000
committerlefranc2010-06-24 07:48:04 +0000
commit29efa77429466e1e0d28caee3a4f8c8041fc80ed (patch)
tree4f6a533e633331efb0dbc424abf7282dc3661b76 /cleopatre
parent2e1546e146a92e54e9839c40eaadb90eebb9989e (diff)
cleo/devkit/plcd: fix WAS_CCO when modem is a station, closes #1694
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7254 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cleopatre')
-rw-r--r--cleopatre/devkit/plcd/src/event.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/cleopatre/devkit/plcd/src/event.c b/cleopatre/devkit/plcd/src/event.c
index 430aa59c75..4a44f566e1 100644
--- a/cleopatre/devkit/plcd/src/event.c
+++ b/cleopatre/devkit/plcd/src/event.c
@@ -143,16 +143,17 @@ int refresh_status (plcd_ctx_t *ctx, mme_ctx_t *status_ctx, int *is_save_conf_ne
{
libspid_config_write_item (ctx->hpav_info_path, LIBSPID_HPAV_INFO_LABEL_CCO, cco_table [cco_new]);
*is_info_manager_needed = LIBSPID_TRUE;
- /* check if WAS_CCO needs to be updated */
- libspid_config_read_item (ctx->hpav_conf_path, LIBSPID_HPAV_CONF_LABEL_WAS_CCO, buffer, sizeof(buffer));
- if((MME_DRV_STATUS_ASSOC_AUTHENTICATED == assoc_new)
- && (((MME_DRV_STATUS_CCO_MAIN == cco_new) && !LIBSPID_GET_BOOLEAN (buffer))
- || ((cco_new != MME_DRV_STATUS_CCO_MAIN) && LIBSPID_GET_BOOLEAN (buffer))))
- {
- /* WAS_CCO update needed */
- libspid_config_write_item (ctx->hpav_conf_path, LIBSPID_HPAV_CONF_LABEL_WAS_CCO, MME_DRV_STATUS_CCO_MAIN == cco_new ? boolean_table[LIBSPID_TRUE] : boolean_table[LIBSPID_FALSE]);
- *is_save_conf_needed = LIBSPID_TRUE;
- }
+ }
+
+ /* check if WAS_CCO needs to be updated */
+ libspid_config_read_item (ctx->hpav_conf_path, LIBSPID_HPAV_CONF_LABEL_WAS_CCO, buffer, sizeof(buffer));
+ if((MME_DRV_STATUS_ASSOC_AUTHENTICATED == assoc_new)
+ && (((MME_DRV_STATUS_CCO_MAIN == cco_new) && !LIBSPID_GET_BOOLEAN (buffer))
+ || ((cco_new != MME_DRV_STATUS_CCO_MAIN) && LIBSPID_GET_BOOLEAN (buffer))))
+ {
+ /* WAS_CCO update needed */
+ libspid_config_write_item (ctx->hpav_conf_path, LIBSPID_HPAV_CONF_LABEL_WAS_CCO, MME_DRV_STATUS_CCO_MAIN == cco_new ? boolean_table[LIBSPID_TRUE] : boolean_table[LIBSPID_FALSE]);
+ *is_save_conf_needed = LIBSPID_TRUE;
}
/* check new cco preferred status with current one, and update