summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2018-06-15 16:48:18 +0200
committerAleksander Morgado <aleksander@aleksander.es>2018-06-15 16:52:15 +0200
commit70fd26f765ac27732dc3ebf0072f7beb8c0ec6b5 (patch)
tree0d1504382272a7699dc92b040c6208696fad5117
parentcf3f3ffcd0da1ef5512bf4a2dce4e0e1861acbc7 (diff)
downloadModemManager-aleksander/ublox-auth.tar.gz
ublox: always send user/pass strings, even if no authentication requestedaleksander/ublox-auth
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=?<CR>' (ttyACM2): <-- '<CR><LF>+UAUTHREQ: (1-4),(0-2),,<CR><LF><CR><LF>OK<CR><LF>' (ttyACM2): --> 'AT+UAUTHREQ=1,0<CR>' (ttyACM2): <-- '<CR><LF>+CME ERROR: 4<CR><LF>' It should have been: AT+UAUTHREQ=1,0,"",""
-rw-r--r--plugins/ublox/mm-broadband-bearer-ublox.c2
1 files changed, 1 insertions, 1 deletions
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),