Skip to content
Commit 17b57957 authored by Van Petrosyan's avatar Van Petrosyan Committed by Chris Friedt
Browse files

drivers: modem_cellular: make APN configurable at run-time



* Implement the new cellular_set_apn() driver hook.
  The API validates the string, stores it in the driver’s
  private data and raises an internal event so the state
  machine can resume.

* Insert MODEM_CELLULAR_STATE_WAIT_FOR_APN between DLCI2 open
  and the APN-script step.
  – If CONFIG_MODEM_CELLULAR_APN is defined and non-empty the
    driver skips WAIT_FOR_APN (behaves exactly as before).
  – Otherwise the driver parks in WAIT_FOR_APN until the
    application calls cellular_set_apn().

* Add event-callback support (CELLULAR_EVENT_MODEM_INFO_CHANGED)
  so an app can subscribe to IMSI availability and kick its own
  APN selection logic.

Signed-off-by: default avatarVan Petrosyan <van.petrosyan@sensirion.com>
parent 0a444c61
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment