Re: huawei: modem channel gets closed after PPP disconnection

2017-02-17 Thread Denis Kenzior
Hi Christophe, So only network interface appears (connection) and vanishes (disconnection). Okay, good. So nothing more than a POLLERR|POLLHUP event on modem channel. okay, but the socket still has to be reopened I guess due to the POLLHUP. If you are OK, I'll send patch next week.

Re: huawei: modem channel gets closed after PPP disconnection

2017-02-17 Thread Christophe Ronco
Hello Denis, On 02/16/2017 06:51 PM, Denis Kenzior wrote: Doing it in the modem driver (e.g. plugins/huawei.c) is the right place. The fix you have come up with looks okayish. However, you might want to strace/ptrace ofonod to see what the kernel is actually sending you to trigger this.

Re: huawei: modem channel gets closed after PPP disconnection

2017-02-16 Thread Denis Kenzior
Hi Christophe, On 02/16/2017 03:26 AM, Christophe Ronco wrote: Hi, I use a huawei E3372 modem. It connects to GPRS using PPP. I am able to activate context and then deactivate it. After that, I am not able to reactivate the context. During deactivation, the AT channel used by PPP gets closed