[PATCH 0/4] Get/Set forbidden operator list via SimManager

Sean Nyekjaer <[email protected]> Tue, 01 Jul 2025 11:29:27 +0200
Newsgroups dev.linux.lists.ofono
Message-ID <[email protected]>
IoT providers allow for enabling and disabling of operators.
If the modem have detected an forbiddel operator it will block
connections to that network.
This will allow controlling software to clear that list.
(Our IoT provider recommends to clear the list everytime we power off
the modem).

Get:
$ busctl call org.ofono /sim76xx_0 org.ofono.SimManager GetProperties
[...]
"PreferredLanguages" as 4 "da" "en" "de" "fr" "PinRequired" s "none"
"Retries" a{sy} 4 "pin" 3 "pin2" 3 "puk"
 10 "puk2" 10 "CardSlotCount" u 1 "ActiveCardSlot" u 1 "ForbiddenPLMN"
 as 4 "23802" "23902" "32431" "331022"

$ busctl call org.ofono /sim76xx_0 org.ofono.SimManager SetProperty sv
ForbiddenPLMN as 1 "23802"

Todo:
I'm still missing to do continious updates of the list.
Any idea to update it periodically?

Would also really like some feedback on the dbus interface

---
Sean Nyekjaer (4):
      simutil: Add Forbidden operatator list(PLMN) fileid
      sim: Show forbidden operator list(PLMN) with GetProperties
      sim: Allow SetProperties to set forbidden operator list(PLMN)
      doc: sim-api document ForbiddenPLMN

 doc/sim-api.txt |   7 +++
 src/sim.c       | 142 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/simutil.h   |   2 +
 3 files changed, 151 insertions(+)
---
base-commit: 8d892785e47bde9a0912a05725405bb60c140f87
change-id: 20250626-fplmn-bcb3eaa8baa4

Best regards,
-- 
Sean Nyekjaer <[email protected]>