commit | 9ee8c12a245d9bc95f357c9448a14b37fa3cd61d | [log] [tgz] |
---|---|---|
author | Yong Cong Sin <yongcong.sin@gmail.com> | Sun Feb 20 22:56:17 2022 +0800 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Wed Mar 16 10:23:32 2022 +0100 |
tree | 094e0ca1bb01e3ebc722d46b722c14989bb82f4a | |
parent | b64a83822cd0a5219b0d77d87579c21cbc4439e9 [diff] |
drivers: modem: gsm: wait for cellular registration The driver should check for cellular registration before attempting to attach to packet service, otherwise it will just fails. This patch waits for registration for 300 seconds, configurable by CONFIG_MODEM_GSM_REGISTER_TIMEOUT, if it isn't registered by then, it would toggle the airplane mode using AT+CFUN & wait again, until it is registered, or `gsm_ppp_stop` is invoked. Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>