diff options
author | Ben Chan <benchan@chromium.org> | 2018-04-23 16:24:42 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2018-04-24 18:22:03 +0200 |
commit | 5e5160c46ad426233123287c0505253e4ea3ff35 (patch) | |
tree | 17182cf2d09a4ceed85a16aab9cbec43d3283a6f /src/tests/test-modem-helpers.c | |
parent | 708b00ae3be84e7927a2566b7ccbd9163698321e (diff) |
broadband-modem-mbim: implement initial signal quality loading
ModemManager currently relies on unsolicited MBIM_CID_SIGNAL_STATE
notifications to obtain signal quality updates, and it doesn't query the
initial signal quality. It's been observed that some MBIM modems issue a
MBIM_CID_SIGNAL_STATE notification only when there is a notable change
in RSSI. The signal quality may remain at 0 for quite some time. It's
more noticeable when simply restarting ModemManager after the modem has
been initialized and enabled once.
We could simply enable periodic signal check on an MBIM modem, but
that's less ideal as it may unnecessarily wake the modem up from USB
selective suspend (unless we use a much longer polling period).
To address the issue, this patch adds the implementation of
load_signal_quality to MMBroadbandModemMbim so that the signal quality
is initially polled via a solicited MBIM_CID_SIGNAL_STATE query. To
avoid the periodic signal check, we set the
MM_IFACE_MODEM_PERIODIC_SIGNAL_CHECK_DISABLED property to TRUE for
MMBroadbandModemMbim.
Diffstat (limited to 'src/tests/test-modem-helpers.c')
0 files changed, 0 insertions, 0 deletions