diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-07 17:36:10 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-23 19:09:54 +0200 |
commit | a95e5dd3244e72cecd518b55bc2ef872963b15d1 (patch) | |
tree | 164bf97dcb51bbea356556d5db6fe34a358496ec | |
parent | 8e1c9421aaf5853a3a4cbfa831dbb2b2718bb734 (diff) |
broadband-modem-qmi: limit 3GPP registration updates for 3GPP modems
-rw-r--r-- | src/mm-broadband-modem-qmi.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c index 5f07f491..92a2762f 100644 --- a/src/mm-broadband-modem-qmi.c +++ b/src/mm-broadband-modem-qmi.c @@ -2791,9 +2791,9 @@ qmi_radio_interface_list_to_access_technologies (GArray *radio_interfaces) } static void -common_process_serving_system (MMBroadbandModemQmi *self, - QmiMessageNasGetServingSystemOutput *response_output, - QmiIndicationNasServingSystemOutput *indication_output) +common_process_serving_system_3gpp (MMBroadbandModemQmi *self, + QmiMessageNasGetServingSystemOutput *response_output, + QmiIndicationNasServingSystemOutput *indication_output) { QmiNasRegistrationState registration_state; QmiNasAttachState cs_attach_state; @@ -2980,7 +2980,7 @@ get_serving_system_ready (QmiClientNas *client, return; } - common_process_serving_system (ctx->self, output, NULL); + common_process_serving_system_3gpp (ctx->self, output, NULL); g_simple_async_result_set_op_res_gboolean (ctx->result, TRUE); qmi_message_nas_get_serving_system_output_unref (output); @@ -3413,9 +3413,9 @@ process_lte_info (QmiMessageNasGetSystemInfoOutput *response_output, } static void -common_process_system_info (MMBroadbandModemQmi *self, - QmiMessageNasGetSystemInfoOutput *response_output, - QmiIndicationNasSystemInfoOutput *indication_output) +common_process_system_info_3gpp (MMBroadbandModemQmi *self, + QmiMessageNasGetSystemInfoOutput *response_output, + QmiIndicationNasSystemInfoOutput *indication_output) { MMModemAccessTechnology access_technologies; MMModem3gppRegistrationState cs_registration_state; @@ -3505,7 +3505,7 @@ get_system_info_ready (QmiClientNas *client, return; } - common_process_system_info (ctx->self, output, NULL); + common_process_system_info_3gpp (ctx->self, output, NULL); g_simple_async_result_set_op_res_gboolean (ctx->result, TRUE); qmi_message_nas_get_system_info_output_unref (output); @@ -3757,7 +3757,8 @@ system_info_indication_cb (QmiClientNas *client, MMBroadbandModemQmi *self, QmiIndicationNasSystemInfoOutput *output) { - common_process_system_info (self, NULL, output); + if (mm_iface_modem_is_3gpp (MM_IFACE_MODEM (self))) + common_process_system_info_3gpp (self, NULL, output); } static void @@ -3765,7 +3766,8 @@ serving_system_indication_cb (QmiClientNas *client, MMBroadbandModemQmi *self, QmiIndicationNasServingSystemOutput *output) { - common_process_serving_system (self, NULL, output); + if (mm_iface_modem_is_3gpp (MM_IFACE_MODEM (self))) + common_process_serving_system_3gpp (self, NULL, output); } static void |