diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-05-28 17:59:30 +0200 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2019-05-30 13:18:32 +0000 |
commit | aa223879371fc859bb0f5409f37aef475d1d84d2 (patch) | |
tree | eb769177b28cc7548ebfd6f429f0a020becbd006 /src/mm-auth.c | |
parent | 7f822fbc50fa7acc2d9358f461e8a56882dd817e (diff) |
iface-modem: fix reporting state while registration is denied
When registration is denied, we should be reporting the modem with
'enabled' state instead of 'registered'. This was not happening
because the logic to build the consolidated state (for 3GPP+3GPP2
modems) was using as default initial state the current old state, and
so if the old one was 'registered' it never allowed getting a
consolidated state of 'enabled', because 'registered' > 'enabled'.
Instead of using the old initial state, the consolidated modem state
should use 'enabled' as default initial value, which is the lowest
among 'enabled, 'searching' and 'registered'.
Diffstat (limited to 'src/mm-auth.c')
0 files changed, 0 insertions, 0 deletions