mirror of https://github.com/PentHertz/srsLTE.git
Fix compilation error when PCSC is enabled.
This commit is contained in:
parent
6a11030ae1
commit
a868a13409
|
@ -69,7 +69,7 @@ public:
|
|||
|
||||
bool get_imsi_vec(uint8_t* imsi_, uint32_t n);
|
||||
bool get_imei_vec(uint8_t* imei_, uint32_t n);
|
||||
bool get_home_plmn_id(asn1::rrc::plmn_id_s* home_plmn_id);
|
||||
bool get_home_plmn_id(srslte::plmn_id_t* home_plmn_id);
|
||||
|
||||
auth_result_t generate_authentication_response(uint8_t *rand,
|
||||
uint8_t *autn_enb,
|
||||
|
|
|
@ -162,7 +162,7 @@ bool pcsc_usim::get_imei_vec(uint8_t* imei_, uint32_t n)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool pcsc_usim::get_home_plmn_id(plmn_id_s* home_plmn_id)
|
||||
bool pcsc_usim::get_home_plmn_id(srslte::plmn_id_t* home_plmn_id)
|
||||
{
|
||||
if (!initiated) {
|
||||
ERROR("USIM not initiated!\n");
|
||||
|
@ -184,13 +184,12 @@ bool pcsc_usim::get_home_plmn_id(plmn_id_s* home_plmn_id)
|
|||
plmn_str << (int)imsi_vec[i];
|
||||
}
|
||||
|
||||
if (not string_to_plmn_id(*home_plmn_id, plmn_str.str())) {
|
||||
if (not home_plmn_id->from_string(plmn_str.str())) {
|
||||
log->error("Error reading home PLMN from SIM.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
log->info("Read Home PLMN Id=%s\n",
|
||||
plmn_id_to_string(*home_plmn_id).c_str());
|
||||
log->info("Read Home PLMN Id=%s\n", plmn_str.str().c_str());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue