sim-qmi: use mm_3gpp_parse_operator_id() for preferred PLMN MNC digits
MNC PCS digit status is now available from mm_3gpp_parse_operator_id(), so use it.
This commit is contained in:
@@ -1011,10 +1011,10 @@ set_preferred_networks (MMBaseSim *self,
|
|||||||
|
|
||||||
operator_code = mm_sim_preferred_network_get_operator_code (preferred_network_list->data);
|
operator_code = mm_sim_preferred_network_get_operator_code (preferred_network_list->data);
|
||||||
act = mm_sim_preferred_network_get_access_technology (preferred_network_list->data);
|
act = mm_sim_preferred_network_get_access_technology (preferred_network_list->data);
|
||||||
if (mm_3gpp_parse_operator_id (operator_code, &preferred_nets_element.mcc, &preferred_nets_element.mnc, NULL, NULL)) {
|
if (mm_3gpp_parse_operator_id (operator_code, &preferred_nets_element.mcc, &preferred_nets_element.mnc,
|
||||||
|
&pcs_digit_element.includes_pcs_digit, NULL)) {
|
||||||
pcs_digit_element.mcc = preferred_nets_element.mcc;
|
pcs_digit_element.mcc = preferred_nets_element.mcc;
|
||||||
pcs_digit_element.mnc = preferred_nets_element.mnc;
|
pcs_digit_element.mnc = preferred_nets_element.mnc;
|
||||||
pcs_digit_element.includes_pcs_digit = strlen(operator_code) > 5;
|
|
||||||
|
|
||||||
preferred_nets_element.radio_access_technology = QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_UNSPECIFIED;
|
preferred_nets_element.radio_access_technology = QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_UNSPECIFIED;
|
||||||
if (act & MM_MODEM_ACCESS_TECHNOLOGY_GSM)
|
if (act & MM_MODEM_ACCESS_TECHNOLOGY_GSM)
|
||||||
|
Reference in New Issue
Block a user