Skip to content

Allow enabling ModemManager GPS on non-enabled modem

Teemu Ikonen requested to merge tpikonen/geoclue:mm-simless-gps into master

This shuffles the MM_MODEM_STATE_ENABLED checks around so that when the modem is not enabled (i.e. does not have a SIM), enabling GPS is allowed, but 3G, CDMA or AGPS are not (although I think AGPS-MSB should be allowed, but MM prevents this).

Needs ModemManager version >=1.23.2, but works also on earlier versions.

Tested on a SIMless Pinephone, but still requires extensive testing on other modem types, better commit messages etc.

Fixes #187 (closed).

Edited by Teemu Ikonen

Merge request reports