}
id = __get_sim_slotid(co);
+ if (id == SLOT_ID_MAX) {
+ err("Invalid SIM SLOT ID");
+ return;
+ }
+
value = tcore_object_ref_property(co, PROP_NET_MANUAL_SELECTION_STATUS);
info("slot(%d), manual selection status = %s", id, value);
}
id = __get_sim_slotid(co);
+ if (id == SLOT_ID_MAX) {
+ err("Invalid SIM SLOT ID");
+ return;
+ }
+
manual_plmn = tcore_object_ref_property(co, PROP_NET_MANUAL_PLMN);
dbg("property changed (value = %s) for slot(%d)", (manual_plmn ? manual_plmn : "Null"), id);
}
id = __get_sim_slotid(source);
+ if (id == SLOT_ID_MAX) {
+ err("Invalid SIM SLOT ID");
+ return TCORE_HOOK_RETURN_CONTINUE;
+ }
if (ud->sim_status[id] == SIM_STATUS_CARD_NOT_PRESENT ||
ud->sim_status[id] == SIM_STATUS_UNKNOWN) {
dbg("No SIM or Unknown");
}
id = __get_sim_slotid(source);
+ if (id == SLOT_ID_MAX) {
+ err("Invalid SIM SLOT ID");
+ return TCORE_HOOK_RETURN_CONTINUE;
+ }
+
ud->sim_status[id] = sim->sim_status;
dbg("slot:[%d] sim_status : [0x%x]", id, ud->sim_status[id]);
modem_plugin = tcore_object_ref_plugin(source);
slot_id = __get_sim_slotid(source);
+ if (slot_id == SLOT_ID_MAX) {
+ err("Invalid SIM SLOT ID");
+ return TCORE_HOOK_RETURN_CONTINUE;
+ }
+
other_slot_id = (slot_id == SLOT_ID_PRIMARY) ? SLOT_ID_SECONDARY : SLOT_ID_PRIMARY;
sim_status = ud->sim_status[slot_id] = sim->sim_status;