Change-Id: I555571735b5285c28aefb87a3da213cdd7ec273e
#sbs-git:slp/pkgs/t/tel-plugin-imc
Name: tel-plugin-imc
Summary: imc plugin for telephony
#sbs-git:slp/pkgs/t/tel-plugin-imc
Name: tel-plugin-imc
Summary: imc plugin for telephony
Release: 1
Group: Development/Libraries
License: Apache
Release: 1
Group: Development/Libraries
License: Apache
const TcoreATResponse *resp = data;
UserRequest *ur;
struct tresp_network_get_serving_network Tresp = {0};
const TcoreATResponse *resp = data;
UserRequest *ur;
struct tresp_network_get_serving_network Tresp = {0};
char *long_plmn_name = NULL;
char *short_plmn_name = NULL;
char *plmn_id = NULL;
char *long_plmn_name = NULL;
char *short_plmn_name = NULL;
char *plmn_id = NULL;
tcore_at_tok_free(tokens);
}
tcore_at_tok_free(tokens);
}
- memcpy(Tresp.plmn, plmn, 7);
+ if(plmn_id)
+ memcpy(Tresp.plmn, plmn_id, strlen(plmn_id));
tcore_network_get_access_technology(o, &(Tresp.act));
tcore_network_get_lac(o, &(Tresp.gsm.lac));
tcore_network_get_access_technology(o, &(Tresp.act));
tcore_network_get_lac(o, &(Tresp.gsm.lac));
struct tnoti_network_change network_change;
memset(&network_change, 0, sizeof(struct tnoti_network_change));
struct tnoti_network_change network_change;
memset(&network_change, 0, sizeof(struct tnoti_network_change));
- memcpy(network_change.plmn, plmn, 7);
+ if(plmn_id)
+ memcpy(network_change.plmn, plmn_id, strlen(plmn_id));
tcore_network_get_access_technology(o, &(network_change.act));
tcore_network_get_lac(o, &(network_change.gsm.lac));
tcore_network_get_access_technology(o, &(network_change.act));
tcore_network_get_lac(o, &(network_change.gsm.lac));
if ((AT_COPS_MODE_DEREGISTER != network_mode) &&
(AT_COPS_MODE_SET_ONLY != network_mode)) {
/*Network identity noti*/
if ((AT_COPS_MODE_DEREGISTER != network_mode) &&
(AT_COPS_MODE_SET_ONLY != network_mode)) {
/*Network identity noti*/
- memset(¬i, 0x0, sizeof(struct tnoti_network_change));
+ memset(¬i, 0x0, sizeof(struct tnoti_network_identity));
if (long_plmn_name)
memcpy(noti.full_name, long_plmn_name, MIN(32, strlen(long_plmn_name)));
if (short_plmn_name)
if (long_plmn_name)
memcpy(noti.full_name, long_plmn_name, MIN(32, strlen(long_plmn_name)));
if (short_plmn_name)