[PATCH] nas: add support for Set System Selection Preference radio interface acquisition order
Aleksander Morgado
aleksander at aleksander.es
Thu Feb 16 20:58:24 UTC 2017
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_preference
(
+ input,
+ pref,
+ &error))
+ goto error;
+
if (!qmi_message_nas_set_system_selection_preference_input_set_acquisition_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? :/
--
Aleksander
https://aleksander.es
More information about the libqmi-devel
mailing list