From 019d038c17f9d633379ab29b9fb7ea15bc0f3fab Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 27 Feb 2014 16:23:12 +0100 Subject: [PATCH] cinterion: force band preference update to be applied immediately --- plugins/cinterion/mm-broadband-modem-cinterion.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/cinterion/mm-broadband-modem-cinterion.c b/plugins/cinterion/mm-broadband-modem-cinterion.c index 99ca8d70..5efdbf0c 100644 --- a/plugins/cinterion/mm-broadband-modem-cinterion.c +++ b/plugins/cinterion/mm-broadband-modem-cinterion.c @@ -1084,8 +1084,11 @@ set_bands_3g (MMIfaceModem *_self, * We will set the preferred band equal to the allowed band, so that we force * the modem to connect at that specific frequency only. Note that we will be * passing a number here! + * + * The optional field is set to 1, so that changes take effect + * immediately. */ - cmd = g_strdup_printf ("^SCFG=\"Radio/Band\",%u", band); + cmd = g_strdup_printf ("^SCFG=\"Radio/Band\",%u,1", band); mm_base_modem_at_command (MM_BASE_MODEM (self), cmd, 15,