plugins: ignore reload_connection_status() where not supported

Some of the AT-based connection methods don't have any way to query
connection status, or we don't have a proper implementation for those
yet. Ignore the reload operation in all those.
This commit is contained in:
Aleksander Morgado
2021-05-23 22:21:54 +02:00
parent 4038c243f9
commit 6fae479bd7
6 changed files with 24 additions and 0 deletions

View File

@@ -358,6 +358,10 @@ mm_broadband_bearer_altair_lte_class_init (MMBroadbandBearerAltairLteClass *klas
base_bearer_class->load_connection_status = NULL; base_bearer_class->load_connection_status = NULL;
base_bearer_class->load_connection_status_finish = NULL; base_bearer_class->load_connection_status_finish = NULL;
#if defined WITH_SYSTEMD_SUSPEND_RESUME
base_bearer_class->reload_connection_status = NULL;
base_bearer_class->reload_connection_status_finish = NULL;
#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;

View File

@@ -867,6 +867,10 @@ mm_broadband_bearer_huawei_class_init (MMBroadbandBearerHuaweiClass *klass)
base_bearer_class->report_connection_status = report_connection_status; base_bearer_class->report_connection_status = report_connection_status;
base_bearer_class->load_connection_status = NULL; base_bearer_class->load_connection_status = NULL;
base_bearer_class->load_connection_status_finish = NULL; base_bearer_class->load_connection_status_finish = NULL;
#if defined WITH_SYSTEMD_SUSPEND_RESUME
base_bearer_class->reload_connection_status = NULL;
base_bearer_class->reload_connection_status_finish = NULL;
#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;

View File

@@ -840,6 +840,10 @@ mm_broadband_bearer_icera_class_init (MMBroadbandBearerIceraClass *klass)
base_bearer_class->report_connection_status = report_connection_status; base_bearer_class->report_connection_status = report_connection_status;
base_bearer_class->load_connection_status = NULL; base_bearer_class->load_connection_status = NULL;
base_bearer_class->load_connection_status_finish = NULL; base_bearer_class->load_connection_status_finish = NULL;
#if defined WITH_SYSTEMD_SUSPEND_RESUME
base_bearer_class->reload_connection_status = NULL;
base_bearer_class->reload_connection_status_finish = NULL;
#endif
broadband_bearer_class->dial_3gpp = dial_3gpp; broadband_bearer_class->dial_3gpp = dial_3gpp;
broadband_bearer_class->dial_3gpp_finish = dial_3gpp_finish; broadband_bearer_class->dial_3gpp_finish = dial_3gpp_finish;

View File

@@ -259,4 +259,8 @@ mm_bearer_iridium_class_init (MMBearerIridiumClass *klass)
base_bearer_class->connect_finish = connect_finish; base_bearer_class->connect_finish = connect_finish;
base_bearer_class->load_connection_status = NULL; base_bearer_class->load_connection_status = NULL;
base_bearer_class->load_connection_status_finish = NULL; base_bearer_class->load_connection_status_finish = NULL;
#if defined WITH_SYSTEMD_SUSPEND_RESUME
base_bearer_class->reload_connection_status = NULL;
base_bearer_class->reload_connection_status_finish = NULL;
#endif
} }

View File

@@ -897,6 +897,10 @@ mm_broadband_bearer_mbm_class_init (MMBroadbandBearerMbmClass *klass)
base_bearer_class->report_connection_status = report_connection_status; base_bearer_class->report_connection_status = report_connection_status;
base_bearer_class->load_connection_status = NULL; base_bearer_class->load_connection_status = NULL;
base_bearer_class->load_connection_status_finish = NULL; base_bearer_class->load_connection_status_finish = NULL;
#if defined WITH_SYSTEMD_SUSPEND_RESUME
base_bearer_class->reload_connection_status = NULL;
base_bearer_class->reload_connection_status_finish = NULL;
#endif
broadband_bearer_class->dial_3gpp = dial_3gpp; broadband_bearer_class->dial_3gpp = dial_3gpp;
broadband_bearer_class->dial_3gpp_finish = dial_3gpp_finish; broadband_bearer_class->dial_3gpp_finish = dial_3gpp_finish;

View File

@@ -785,6 +785,10 @@ mm_broadband_bearer_hso_class_init (MMBroadbandBearerHsoClass *klass)
base_bearer_class->report_connection_status = report_connection_status; base_bearer_class->report_connection_status = report_connection_status;
base_bearer_class->load_connection_status = NULL; base_bearer_class->load_connection_status = NULL;
base_bearer_class->load_connection_status_finish = NULL; base_bearer_class->load_connection_status_finish = NULL;
#if defined WITH_SYSTEMD_SUSPEND_RESUME
base_bearer_class->reload_connection_status = NULL;
base_bearer_class->reload_connection_status_finish = NULL;
#endif
broadband_bearer_class->dial_3gpp = dial_3gpp; broadband_bearer_class->dial_3gpp = dial_3gpp;
broadband_bearer_class->dial_3gpp_finish = dial_3gpp_finish; broadband_bearer_class->dial_3gpp_finish = dial_3gpp_finish;