base-bearer: make sure 'ReloadStatsSupported' is set before transitioning to 'Connected'

By the time we report the bearer as 'Connected', the DBus client
should also be able to know right away the value of
'ReloadStatsSupported', instead of needing to wait for it to be
updated asynchronously.

This logic adds one additional step in the generic connection
sequence for this purpose, which is run after the modem is connected
but before we report the state change via DBus.
This commit is contained in:
Aleksander Morgado
2021-12-11 15:06:42 +01:00
parent 9fc3d15d29
commit 029ea68ce4
2 changed files with 120 additions and 92 deletions

View File

@@ -381,7 +381,15 @@
<!--
ReloadStatsSupported:
Indicates whether or not the bearer support getting rx and tx bytes statistics.
Indicates whether reloading ongoing statistics is supported or not.
This property applies exclusively to the statistics that are queried from
the modem periodically; i.e. "rx-bytes", "tx-bytes", "uplink-speed" and
"downlink-speed".
The property is initialized to a fixed value as soon as the first
connection attempt has successfully finished. Reading this value before
the first successful connection attempt will always report %FALSE.
Since: 1.20
-->