Skip to contentSkip to conversation

simcommodem: Add netmon driver for Simcom A7671E

PATCH New Sean Nyekjaer 1 participant 2 messages Apr 16 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 simcommodem: Add netmon driver for Simcom A7671E

---
Changes in v2:
- Removed unused ref counting

Changes in v3:
- Change simcom_parse_cpsi_lte to return void

 Makefile.am                  |   3 +-
 drivers/simcommodem/netmon.c | 240 +++++++++++++++++++++++++++++++++++
 plugins/sim7100.c            |   2 +
 3 files changed, 244 insertions(+), 1 deletion(-)
 create mode 100644 drivers/simcommodem/netmon.c
Makefile.am +2 -1
index cf51cdf1..6f10d396 100644
@@ -541,7 +541,8 @@ builtin_sources += drivers/atmodem/atutil.h \
 			drivers/quectelmodem/radio-settings.c
 
 builtin_sources += drivers/atmodem/atutil.h \
-			drivers/simcommodem/radio-settings.c
+			drivers/simcommodem/radio-settings.c \
+			drivers/simcommodem/netmon.c
 
 if PHONESIM
 builtin_modules += phonesim
drivers/simcommodem/netmon.c new file +240 -0

240 lines not on this page · raw message

plugins/sim7100.c +2 -0
index c4fc5798..0d937868 100644
@@ -34,6 +34,7 @@
 #include <ofono/call-settings.h>
 #include <ofono/devinfo.h>
 #include <ofono/message-waiting.h>
+#include <ofono/netmon.h>
 #include <ofono/netreg.h>
 #include <ofono/phonebook.h>
 #include <ofono/radio-settings.h>
@@ -357,6 +358,7 @@ static void sim7100_post_sim(struct ofono_modem *modem)
 		ofono_sms_create(modem, OFONO_VENDOR_SIMCOM_A76XX,
 							"atmodem", data->at);
 		ofono_radio_settings_create(modem, 0, "simcommodem", data->at);
+		ofono_netmon_create(modem, 0, "simcommodem", data->at);
 		gprs = ofono_gprs_create(modem, OFONO_VENDOR_SIMCOM_A76XX,
 							"atmodem", data->at);
 		break;
Signature · 1 line
2.52.0
#1 lore raw

PATCH v3 2/2 doc: netmon: fix indentation

---
 doc/networkmonitor-api.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
doc/networkmonitor-api.txt +1 -1
index af56f04b..f029d96d 100644
@@ -22,7 +22,7 @@ Methods		a{sv} GetServingCellInformation()
 			are available, their valid value ranges and
 			applicability to different cell types.
 
-			a{a{sv}} GetNeighbouringCellsInformation()
+		a{a{sv}} GetNeighbouringCellsInformation()
 
 			Requests the neighbouring cells information and basic
 			measurements from oFono.  The returned value is a
Signature · 1 line
2.52.0