Permalink
Browse files

Do not filter IMSI availiability

Change-Id: I6aa8c71ee88d65ff340e6b83891e017d554cb9fa
  • Loading branch information...
CoRfr committed Mar 3, 2018
1 parent 21f7979 commit cb04428a1c1c52cefe57a0b0316bf9d6b244c898
Showing with 3 additions and 12 deletions.
  1. +3 −12 components/modemServices/modemDaemon/le_sim.c
@@ -1055,20 +1055,11 @@ le_result_t le_sim_GetIMSI
return LE_BAD_PARAMETER;
}

if ((LE_OK == SelectSIMCard(simPtr->simId)) &&
(LE_OK == pa_sim_GetState(&state)) &&
(LE_SIM_READY == state)
)
if (LE_OK == SelectSIMCard(simPtr->simId))
{
// Get identification information
res = GetIMSI(simPtr);
}
else
{
LE_ERROR("Failed to get the IMSI of sim identifier.%d", simPtr->simId);
simPtr->IMSI[0] = '\0';
return LE_FAULT;
}

// The IMSI is available. Copy it to the result buffer.
if (LE_OK == res)
@@ -1839,7 +1830,7 @@ le_result_t le_sim_LocalSwapToEmergencyCallSubscription
}
simPtr = &SimList[simId];

//Clear sim information.
// Clear sim information.
simPtr->ICCID[0] = '\0';
simPtr->IMSI[0] = '\0';
simPtr->phoneNumber[0] = '\0';
@@ -1895,7 +1886,7 @@ le_result_t le_sim_LocalSwapToCommercialSubscription
}
simPtr = &SimList[simId];

//Clear sim information (do not clear EID).
// Clear sim information (do not clear EID).
simPtr->ICCID[0] = '\0';
simPtr->IMSI[0] = '\0';
simPtr->phoneNumber[0] = '\0';

0 comments on commit cb04428

Please sign in to comment.