From 0576f8d28405df80c689f478363a2a041f9d5df3 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sun, 23 May 2021 22:11:08 +0200 Subject: [PATCH 32/39] broadband-bearer: 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 case of AT+CGACT? based modems. --- src/mm-broadband-bearer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mm-broadband-bearer.c b/src/mm-broadband-bearer.c index 73869a0c..ff49903a 100644 --- a/src/mm-broadband-bearer.c +++ b/src/mm-broadband-bearer.c @@ -2333,6 +2333,10 @@ mm_broadband_bearer_class_init (MMBroadbandBearerClass *klass) base_bearer_class->report_connection_status = report_connection_status; base_bearer_class->load_connection_status = load_connection_status; 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 klass->connect_3gpp = connect_3gpp; klass->connect_3gpp_finish = detailed_connect_finish; -- 2.31.1