Skip to content

Draft: wwan/ofono: create connections based on available contexts

Bhushan Shah requested to merge bshah/NetworkManager:ofono-context into main

Downstream patches for this does it through NMSettings plugin, however settings plugin are hard to maintain and complicated architecture wise as well.

So directly create a connection profiles in-memory from the nm-modem-ofono side. Those profiles are created in /run, and are not added as a persistent connection, because connection state quite depends on the state of ofono

This also allows us to drop the hack where we are keeping track of active context/APN through the connection name, i.e if connection name was in /imsi/context1 format, it was used. Instead now, Connection name is actual context name which is user friendly ("Vodafone Connect" e.g. in my case), and details like IMSI and context are stored internally.


  • Upstream patches that are part of (!771 (closed)) first and rebase
  • Check Preferred Access point name, and use it to create connection for only that one
  • Handle case of multiple valid access point name
  • Handle case of adding/removing of access points
  • Tidy up code, and fix various issues told by CI (for now doing ci.skip till I know patch is in ready state)
Edited by Bhushan Shah

Merge request reports