diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-06-15 16:48:18 +0200 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2018-07-10 19:45:05 +0000 |
commit | d134402efc49eb5e51ee7db33c8aef785837ef16 (patch) | |
tree | 7cd2d29a5077c060688944415d7e04409d25398d | |
parent | 3570604bc4005e36e506c896bdb8cfc6a026df96 (diff) | |
download | ModemManager-d134402efc49eb5e51ee7db33c8aef785837ef16.tar.gz |
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=?<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.c | 2 |
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), |