[PATCH] nas: add support for Set System Selection Preference radio interface acquisition order

Dan Williams dcbw at redhat.com
Thu Feb 16 21:01:09 UTC 2017


On Thu, 2017-02-16 at 21:58 +0100, Aleksander Morgado wrote:
> On Thu, Feb 16, 2017 at 9:49 PM, Aleksander Morgado
> <aleksander at aleksander.es> wrote:
> > I think that we shouldn't "fallback" to updating Mode preference
> > only if
> > setting the acquisition order fails; I believe we need the SSP
> > command
> > with both TLVs: mode preference selects which techs you want,
> > acquisition order selects the order of those techs. Would that make
> > sense?
> 
> I did this:
> 
> diff --git a/src/qmicli/qmicli-nas.c b/src/qmicli/qmicli-nas.c
> index 41f7c4a..0d2eb75 100644
> --- a/src/qmicli/qmicli-nas.c
> +++ b/src/qmicli/qmicli-nas.c
> @@ -2138,6 +2138,12 @@ set_system_selection_preference_input_create
> (const gchar *str, gboolean build_a
>      input =
> qmi_message_nas_set_system_selection_preference_input_new ();
> 
>      if (build_array) {
> +        if
> (!qmi_message_nas_set_system_selection_preference_input_set_mode_pref
> erence
> (
> +                input,
> +                pref,
> +                &error))
> +            goto error;
> +
>          if
> (!qmi_message_nas_set_system_selection_preference_input_set_acquisiti
> on_order
> (
>                  input,
>                  pref_array,
> 
> And now:
> $ sudo qmicli -d /dev/cdc-wdm1 --nas-set-system-selection-
> preference="umts|lte"
> 
> And I see:
>    Mode preference: 'umts, lte'
>    Radio Interface Acquisition Order: 'umts|lte|gsm|cdma-1x|cdma-
> 1xevdo'
> 
> But it's still in LTE:
> $ sudo qmicli -d /dev/cdc-wdm1 --nas-get-signal-info
> [/dev/cdc-wdm1] Successfully got signal info
> LTE:
> RSSI: '-69 dBm'
> RSRQ: '-11 dB'
> RSRP: '-99 dBm'
> SNR: '11,2 dB'
> 
> I did a offline+reset power cycle, and when it came back it went
> first
> to UMTS and then quickly to LTE:
> 
> $ sudo qmicli -d /dev/cdc-wdm1 --nas-get-signal-info
> [/dev/cdc-wdm1] Successfully got signal info
> WCDMA:
> RSSI: '-78 dBm'
> ECIO: '-4,0 dBm'
> $ sudo qmicli -d /dev/cdc-wdm1 --nas-get-signal-info
> [/dev/cdc-wdm1] Successfully got signal info
> LTE:
> RSSI: '-125 dBm'
> RSRQ: '0 dB'
> RSRP: '0 dBm'
> SNR: '-18,4 dB'
> 
> Don't know what to say, looks like the order requested isn't being
> applied? :/

Yeah, I also tried setting both the "Mode Pref" and the "Acq Order
list" at the same time and my 7700 didn't like that much.  Not sure
what's really going on.

One more thing to try:  can you make it lock to a specific technology? 
eg "=umts" or "=lte"?  Maybe that's a way to be able to lock to 3G or
4G.

Dan


More information about the libqmi-devel mailing list