In a previous commit, a check was added to ensure modem was properly attached to packet service before initializing PPP. Failure to perform this check can lead to the dreaded 'NO CARRIER' issue. While this is a nice idea, the implementation was lacking because when the check failed, the entire modem initialization procedure was restarted from square one. For modems/bearers that were slow to attach, this is potentially disastrous. The proper solution is to loop only the 'AT+CGATT?' part until it succeeds, or fails N times. This commit implements this looping behavior (using the work queue). Signed-off-by: Benjamin Lindqvist <benjamin.lindqvist@endian.se> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| gsm_ppp.c | ||
| hl7800.c | ||
| Kconfig | ||
| Kconfig.gsm | ||
| Kconfig.hl7800 | ||
| Kconfig.quectel-bg9x | ||
| Kconfig.ublox-sara-r4 | ||
| Kconfig.wncm14a2a | ||
| modem_cmd_handler.c | ||
| modem_cmd_handler.h | ||
| modem_context.c | ||
| modem_context.h | ||
| modem_iface_uart.c | ||
| modem_iface_uart.h | ||
| modem_pin.c | ||
| modem_receiver.c | ||
| modem_receiver.h | ||
| modem_shell.c | ||
| modem_socket.c | ||
| modem_socket.h | ||
| quectel-bg9x.c | ||
| quectel-bg9x.h | ||
| ublox-sara-r4.c | ||
| wncm14a2a.c | ||