<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Feb 16, 2017 2:00 PM, "Dan Williams" <<a href="mailto:dcbw@redhat.com">dcbw@redhat.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="elided-text">On Thu, 2017-02-16 at 17:36 +0100, Aleksander Morgado wrote:<br>
> On Thu, Feb 16, 2017 at 4:29 PM, Russ Westrem<br>
> <<a href="mailto:lspwaterproofing@gmail.com">lspwaterproofing@gmail.com</a>> wrote:<br>
> > Im am trying to lock to 4g only.<br>
> ><br>
> >   Modes    |      supported: 'allowed: 2g, 3g, 4g; preferred: none'<br>
> >            |        current: 'allowed: 2g, 3g, 4g; preferred: none'<br>
> ><br>
> ><br>
> ><br>
> > root@LEDE:~# mmcli -m 0 --set-allowed-modes=4g<br>
> > error: couldn't set current modes:<br>
> > 'GDBus.Error:org.freedesktop.<wbr>ModemManager1.Error.Core.<wbr>Unsupported:<br>
> > Cannot<br>
> > change modes: only one combination supported'<br>
><br>
> Is this in MBIM mode? There isn't any support for mode/capabilities<br>
> changing in plain MBIM mode. If this is in QMI mode, try<br>
> --set-current-capabilities=lte instead. ModemManager only exposes the<br>
> list of mode combinations that are allowed by the modem in the<br>
> current<br>
> capability. See<br>
> <a href="https://sigquit.wordpress.com/2013/06/03/changing-modes-and-capabilit" rel="noreferrer" target="_blank">https://sigquit.wordpress.com/<wbr>2013/06/03/changing-modes-and-<wbr>capabilit</a><br>
> ies-in-modemmanager/<br>
><br>
> > root@LEDE:~# mmcli -m 0 --set-preferred-mode=4g<br>
> > error: setting preferred mode requires list of allowed modes<br>
><br>
> --preferred-mode must be given with --allowed-modes. E.g. there may<br>
> be<br>
> a combination saying "allowed 2G, 3G and 4G" but preferred "4G".<br>
<br>
</div>It's probably Russ's 7455 in QMI mode?<br>
<br>
For QMI MM doesn't allow specific mode selection/enablement either, see<br>
the QMI implementation of modem_load_supported_modes().  If the modem<br>
supports NAS >= 1.21 (or slightly earlier) then with<br>
NASSystemSelectionPreference we could use the ordered radio interface<br>
list to pass to TLV 0x1E (AcquisitionOrder).<br>
<br>
libqmi doesn't support that, but I just did a patch for it.  However, I<br>
can't quite figure out the relationship between "Mode Preference" and<br>
the radio interface order array for the TLV I added.  Maybe somebody<br>
else can test and find out?<br>
<font color="#888888"><br>
Dan<br>
</font></blockquote></div>Yes it's the mc7455 in qmi mode.  I locked it in using an at command.  After this it showed only 4g in mmcli.  It still didn't solve my problem so back to the drawing board.  </div></div></div>