commit | 60beb291dfbdde1e8aebf98dcb57a3dd8686cc4b | [log] [tgz] |
---|---|---|
author | Sjors Hettinga <s.a.hettinga@gmail.com> | Fri Jan 21 16:17:07 2022 +0100 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Feb 21 20:39:44 2022 -0500 |
tree | 341af438dc3438b402a99ef9a71eb59a1f7df4dd | |
parent | e535cc76db0eef522490487fd68976c8774610e7 [diff] |
drivers: gsm: Wait for NET_EVENT_IF_DOWN in in gsm_ppp_stop Waits until the network interface goes down before switching the GSM_MUX. It uses the NET_MGMT_EVENT to signal a semaphore to contiue when closed. This allows for the LCP state machine to properly terminate. When skipping this wait, the second time connecting, the connection might fail. Tested on a real modem. Fixes GSM PPP behavior in combination with: #41802 Signed-off-by: Sjors Hettinga <s.a.hettinga@gmail.com>