novatel-lte: reuse the same method for load and reload

The load_() method is used for connection monitoring; while the
reload_() method is used to sync connection status after a
suspend/resume operation. The same method can be used for both things
in the Novatel LTE plugin.
This commit is contained in:
Aleksander Morgado
2021-05-23 22:14:49 +02:00
parent 2466ddbdaf
commit 205f46620e

View File

@@ -568,6 +568,10 @@ mm_broadband_bearer_novatel_lte_class_init (MMBroadbandBearerNovatelLteClass *kl
base_bearer_class->load_connection_status = load_connection_status; base_bearer_class->load_connection_status = load_connection_status;
base_bearer_class->load_connection_status_finish = load_connection_status_finish; base_bearer_class->load_connection_status_finish = load_connection_status_finish;
#if defined WITH_SYSTEMD_SUSPEND_RESUME
base_bearer_class->reload_connection_status = load_connection_status;
base_bearer_class->reload_connection_status_finish = load_connection_status_finish;
#endif
broadband_bearer_class->connect_3gpp = connect_3gpp; broadband_bearer_class->connect_3gpp = connect_3gpp;
broadband_bearer_class->connect_3gpp_finish = connect_3gpp_finish; broadband_bearer_class->connect_3gpp_finish = connect_3gpp_finish;