Locking MM to 4g only

Aleksander Morgado aleksander at aleksander.es
Thu Feb 16 16:36:01 UTC 2017


On Thu, Feb 16, 2017 at 4:29 PM, Russ Westrem
<lspwaterproofing at gmail.com> wrote:
> Im am trying to lock to 4g only.
>
>   Modes    |      supported: 'allowed: 2g, 3g, 4g; preferred: none'
>            |        current: 'allowed: 2g, 3g, 4g; preferred: none'
>
>
>
> root at LEDE:~# mmcli -m 0 --set-allowed-modes=4g
> error: couldn't set current modes:
> 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unsupported: Cannot
> change modes: only one combination supported'

Is this in MBIM mode? There isn't any support for mode/capabilities
changing in plain MBIM mode. If this is in QMI mode, try
--set-current-capabilities=lte instead. ModemManager only exposes the
list of mode combinations that are allowed by the modem in the current
capability. See
https://sigquit.wordpress.com/2013/06/03/changing-modes-and-capabilities-in-modemmanager/

> root at LEDE:~# mmcli -m 0 --set-preferred-mode=4g
> error: setting preferred mode requires list of allowed modes

--preferred-mode must be given with --allowed-modes. E.g. there may be
a combination saying "allowed 2G, 3G and 4G" but preferred "4G".

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list