From 70fd26f765ac27732dc3ebf0072f7beb8c0ec6b5 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 15 Jun 2018 16:48:18 +0200 Subject: ublox: always send user/pass strings, even if no authentication requested The TOBY-L2 allowed to skup the user/pass string fields when no authentication was requested, but according to the AT command reference, all the remaining u-blox modules do require these two fields given always (e.g. just as empty strings). As per this sequence in a TOBY-L4: (ttyACM2): --> 'AT+UAUTHREQ=?' (ttyACM2): <-- '+UAUTHREQ: (1-4),(0-2),,OK' (ttyACM2): --> 'AT+UAUTHREQ=1,0' (ttyACM2): <-- '+CME ERROR: 4' It should have been: AT+UAUTHREQ=1,0,"","" --- plugins/ublox/mm-broadband-bearer-ublox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ublox/mm-broadband-bearer-ublox.c b/plugins/ublox/mm-broadband-bearer-ublox.c index 3cb17336c..1adcaa26b 100644 --- a/plugins/ublox/mm-broadband-bearer-ublox.c +++ b/plugins/ublox/mm-broadband-bearer-ublox.c @@ -463,7 +463,7 @@ out: g_free (quoted_user); g_free (quoted_password); } else - cmd = g_strdup_printf ("+UAUTHREQ=%u,0", ctx->cid); + cmd = g_strdup_printf ("+UAUTHREQ=%u,0,\"\",\"\"", ctx->cid); mm_dbg ("setting up authentication preferences in PDP context #%u...", ctx->cid); mm_base_modem_at_command (MM_BASE_MODEM (ctx->modem), -- cgit v1.2.1