Skip to content

Commit

Permalink
Do not filter IMSI availiability
Browse files Browse the repository at this point in the history
Change-Id: I6aa8c71ee88d65ff340e6b83891e017d554cb9fa
  • Loading branch information
Bertrand Roussel committed Mar 3, 2018
1 parent 21f7979 commit cb04428
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions components/modemServices/modemDaemon/le_sim.c
Expand Up @@ -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)
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit cb04428

Please sign in to comment.