All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Golubtsov <s.e.golubtsov@gmail.com>
To: ofono@ofono.org
Subject: Re: Quectel EC200T USB: Problems with context activation
Date: Thu, 20 May 2021 01:35:26 +0200	[thread overview]
Message-ID: <CAFiQ674a-ymNTC-WhJrC98kR+BXe2nCcuCzAdsDDo+TnBQp5YA@mail.gmail.com> (raw)
In-Reply-To: <03e52820-7410-2b98-e766-2ae267ad8d2e@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2233 bytes --]

Hi Denis,

Thank you very much for your quick and helpful reply.

The problem is a bit vulgar actually. That's a shame that I took your
time for that but I have another question as I am not sure about the
findings below.

I had tried to get dump with gsmdial and gsmdial successfully
activated the context. So the problem is that we have authentication
method set to NONE in ofono. But gsmdial uses CHAP by default.
I have manually set the auth to CHAP for the context in ofono and
ofono successfully activated the context.
There is the provider info from mobile-broadband-provider-info about
my provider:

    <provider>
    <name>China Unicom</name>
    <gsm>
    <network-id mcc="460" mnc="01"/>
    <apn value="3gnet">
    <plan type="postpaid"/>
    <usage type="internet"/>
    <username>uninet</username>
    </apn>
    <apn value="3gwap">
    <usage type="mms"/>
    <name>联通彩信</name>
    <mmsc>http://mmsc.myuni.com.cn</mmsc>
    <mmsproxy>10.0.0.172:80</mmsproxy>
    </apn>
    </gsm>
    </provider>


Am I correct that ofono must use CHAP if the auth method is not
specified in the db?

I see that the technology used by the modem is HSPA. And I see the
following in ofono/drivers/atmodem/lte.c:

    /* change the authentication method if the  parameters are invalid */
    if (!*ldd->pending_info.username || !*ldd->pending_info.password)
       auth_method = OFONO_GPRS_AUTH_METHOD_NONE;


And in ofono/plugins/mbpi.c:

    /* select authentication method NONE if fit */
    if (!ap->username || !ap->password)
    ap->auth_method = OFONO_GPRS_AUTH_METHOD_NONE;


As well as ofono/plugins/fileprovision.c::

    /* select default authentication method */
    (*settings)[0].auth_method = OFONO_GPRS_AUTH_METHOD_NONE;


ofono/src/lte.c:

    /* this must have a valid default */
   if (!gprs_auth_method_from_string(auth_method_str,
   &lte->info.auth_method))
   lte->info.auth_method = OFONO_GPRS_AUTH_METHOD_NONE;


I am not sure about the standards which may be relevant here. Sorry
for asking this but I thought that we should use CHAP by default,
don't we?

Thank you again and have a nice day.

Yours sincerely,
Sergei Golubtsov.

  reply	other threads:[~2021-05-19 23:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAFiQ675+H9QndW030-WkV2oivkVVChzcOTnKbaj+4VzW4k9P6w@mail.gmail.com>
2021-05-19  6:44 ` Quectel EC200T USB: Problems with context activation in chineese networks Sergei Golubtsov
2021-05-19 14:16 ` Quectel EC200T USB: Problems with context activation Denis Kenzior
2021-05-19 23:35   ` Sergei Golubtsov [this message]
2021-05-20 17:57     ` Denis Kenzior
2020-12-30 10:00 Sergei Golubtsov
2020-12-30 16:42 ` Denis Kenzior
2020-12-31 12:35   ` Sergei Golubtsov
2020-12-31 16:20     ` Denis Kenzior
2021-01-01 14:10       ` Sergei Golubtsov
2021-01-01 16:27         ` Sergei Golubtsov
2021-01-02  9:52           ` Sergei Golubtsov
2021-01-04 17:43             ` Denis Kenzior
2021-01-05 21:34               ` Sergei Golubtsov
2021-01-06 19:52                 ` Denis Kenzior
     [not found] <CAFiQ676fUqkEz9KbKUOY27o=DXTDtWRawVioPj+otEvJNryr8A@mail.gmail.com>
2020-12-29 14:09 ` Sergei Golubtsov
2020-12-29 15:55   ` Sergei Golubtsov
2020-12-29 17:56     ` Sergei Golubtsov
2020-12-29 21:49       ` Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFiQ674a-ymNTC-WhJrC98kR+BXe2nCcuCzAdsDDo+TnBQp5YA@mail.gmail.com \
    --to=s.e.golubtsov@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.