In the first email I was mistaken about the authentication method in pppd - it is pap not chap. So, probably this is the problem. How can I change the authentication method for the context activation in Ofono from default chap to pap? Where is the best place to do it in the code?

Yours sincerely,
Sergei Golubtsov.


On Tue, Dec 29, 2020 at 3:09 PM Sergei Golubtsov <s.e.golubtsov@gmail.com> wrote:
Hello,

I am trying to add support for the Quectel EC200T USB modem. This modem uses the option USB serial driver in the kernel.
As other Quectel modems, this one uses the atmodem ofono driver. 

I cannot overcome the problem of context activation. It fails at "ofono/gatchat/gatppp.c:ppp_enter_phase() 2" after a minute.
At the same time, I can successfully use pppd. Both pppd and ofono use the chap authentication method.

Please find logs and the patch attached.
Any suggestions will be appreciated.

Yours sincerely,
Sergei Golubtsov.