Commit Graph

2351 Commits

Author SHA1 Message Date
Aleksander Morgado
1304b65956 base-modem: log when fully disposing the object 2012-03-15 14:14:44 +01:00
Aleksander Morgado
8af488b452 base-modem: use g_clear_object() before setting new objects 2012-03-15 14:14:44 +01:00
Aleksander Morgado
c3f1a7ec98 bearer: use g_clear_object() before setting new objects 2012-03-15 14:14:44 +01:00
Aleksander Morgado
1097993212 broadband-modem: use g_clear_object() before setting new objects 2012-03-15 14:14:44 +01:00
Aleksander Morgado
8610fd47b3 iface-modem: plug small leak 2012-03-15 14:14:44 +01:00
Aleksander Morgado
8c0d67a81a sim: use g_clear_object() before setting new objects 2012-03-15 14:14:44 +01:00
Aleksander Morgado
f3bc54eb40 libmm-common: plug small leak in the common simple properties 2012-03-15 14:14:44 +01:00
Aleksander Morgado
a68847a091 iface-modem-3gpp: if modem is LTE-only, assume no CS network is expected 2012-03-15 14:14:43 +01:00
Aleksander Morgado
ffae95a46b iface-modem: new helpers to check if modem has LTE capabilities 2012-03-15 14:14:43 +01:00
Aleksander Morgado
3c703dd5a3 iface-modem-3gpp: new properties to tell whether PS/CS networks are supported
E.g, Iridium modems won't support PS networks, and LTE-only modems won't support
CS networks.
2012-03-15 14:14:43 +01:00
Aleksander Morgado
517d47b699 iface-modem-3gpp: update PS/CS registration states separately
But provide a consolidate state in the interface.
2012-03-15 14:14:43 +01:00
Aleksander Morgado
6abcfd54a6 iface-modem-cdma: load MEID during initialization 2012-03-15 14:14:43 +01:00
Aleksander Morgado
863bfe9ecd broadband-modem: implement the CDMA interface 2012-03-15 14:14:43 +01:00
Aleksander Morgado
f5d894f5a2 iface-modem-cdma: new interface to handle CDMA specific actions 2012-03-15 14:14:43 +01:00
Aleksander Morgado
ad9df4a5d1 broadband-modem: implement QCDM-based signal quality retrieval
Will work for CDMA modems with QCDM ports.
2012-03-15 14:14:43 +01:00
Aleksander Morgado
94846a2f51 base-modem: make public the method to get best AT port
Sometimes, we want to check whether a given port is available to send commands,
and fallback to some other method if so (e.g. using a QCDM port).
2012-03-15 14:14:43 +01:00
Aleksander Morgado
edc1174068 broadband-modem: try +CSQ? if +CSQ fails
As done in the generic CDMA implementation
2012-03-15 14:14:43 +01:00
Aleksander Morgado
d5af2286e2 iface-modem-3gpp: indicators and unsolicited events are 3GPP-specific
Moved code from the Modem interface, as this is really 3GPP-specific
2012-03-15 14:14:43 +01:00
Aleksander Morgado
5c3154bbba Revert "broadband-modem: skip indicators and unsolicited events setup in CDMA-only modems"
This reverts commit b16f9bbba6aeb8b54a81192dca76d57ac0e88aae.
2012-03-15 14:14:43 +01:00
Aleksander Morgado
611970a424 broadband-modem: remove obsolete commented code 2012-03-15 14:14:43 +01:00
Aleksander Morgado
41bf841334 generic: allow QCDM ports 2012-03-15 14:14:42 +01:00
Aleksander Morgado
def30139d7 cli: report as 'none' when no SIM path is given
Instead of giving '/'
2012-03-15 14:14:42 +01:00
Aleksander Morgado
7043b2ef6e broadband-modem: skip indicators and unsolicited events setup in CDMA-only modems 2012-03-15 14:14:42 +01:00
Aleksander Morgado
ae5da01403 broadband-modem: skip supported charsets check in CDMA-only modems 2012-03-15 14:14:42 +01:00
Aleksander Morgado
f4acff17da broadband-modem: skip SIM creation in CDMA-only modems 2012-03-15 14:14:42 +01:00
Aleksander Morgado
bda0d0c1d4 iface-modem: allow implementations to return no SIM and no error
That would mean that the implementation doesn't want to handle a SIM object
around, maybe because it doesn't support it properly, or because there is
no SIM at all (e.g. CDMA-only modems).
2012-03-15 14:14:42 +01:00
Aleksander Morgado
34bf2e6dd1 broadband-modem: helper comments when setting interface implementation 2012-03-15 14:14:42 +01:00
Aleksander Morgado
89646f2b64 broadband-modem: check for 3GPP using capabilities, not availability of the interface 2012-03-15 14:14:42 +01:00
Aleksander Morgado
e107528f87 broadband-modem: skip unlock check in CDMA-only modems 2012-03-15 14:14:42 +01:00
Aleksander Morgado
021ff8a35b iface-modem: open/close secondary AT/QCDM ports during enable/disable 2012-03-15 14:14:42 +01:00
Aleksander Morgado
be7cee24f3 iface-modem: place all tags/quarks handled together 2012-03-15 14:14:42 +01:00
Aleksander Morgado
d28171b1db broadband-modem: don't try +CGSN in CDMA-only modems 2012-03-15 14:14:42 +01:00
Aleksander Morgado
0f7716887c iface-modem: new methods to check for specific capabilities being supported 2012-03-15 14:14:42 +01:00
Aleksander Morgado
dd3d1c0337 broadband-modem: provide default implementation of MMSim creation 2012-03-15 14:14:42 +01:00
Aleksander Morgado
ba5321adf1 iface-modem: let different SIM object creation implementations
We let objects implementing the Modem interface to provide their own SIM
creation method. This allows plugins to subclass MMSim themselves.
2012-03-15 14:14:41 +01:00
Aleksander Morgado
7d2626ea44 sim: new SIM path getter 2012-03-15 14:14:41 +01:00
Aleksander Morgado
e4486fd5f0 base-modem: store the AT sequence context GDestroyNotify callback 2012-03-15 14:14:41 +01:00
Aleksander Morgado
b18a801df3 libmm-common: fix build dependencies
Added proper rules in the Makefile so that those files which need the
glib-mkenums generated files are built always once the prerequisites are all
ready.

Also, avoid including libmm-common.h from within source files of the library.
2012-03-15 14:14:41 +01:00
Aleksander Morgado
5c1d18d156 port-probe: store the task always before completing it
If we already got all needed probing results, we complete the task without
launching any new probing, but still, we need to store it internally so
that it's properly disposed.
2012-03-15 14:14:41 +01:00
Aleksander Morgado
51dc93e3d5 manager: plug small leak 2012-03-15 14:14:41 +01:00
Aleksander Morgado
bf69930ede iface-modem: ensure initial allowed modes is a subset of supported modes
Also make loading supported modes a mandatory method that must be provided by
objects implementing the Modem interface.
2012-03-15 14:14:41 +01:00
Aleksander Morgado
f0c5e5145e iface-modem-simple: include setting bands during simple Connect() 2012-03-15 14:14:41 +01:00
Aleksander Morgado
a34f51b0a5 cli: new `--set-allowed-bands' 2012-03-15 14:14:41 +01:00
Aleksander Morgado
6002ad1b70 iface-modem: run checks when trying to set allowed bands
Allowed bands must be a subset of the supported bands.
2012-03-15 14:14:41 +01:00
Aleksander Morgado
aae179463b broadband-modem: implement default supported mode loading
Try to guess the supported modes, based on the current capabilities.
2012-03-15 14:14:41 +01:00
Aleksander Morgado
148025c381 cli: new --set-allowed-modes' and --set-preferred-modes' actions 2012-03-15 14:14:41 +01:00
Aleksander Morgado
1be7c27453 iface-modem: run checks when trying to set allowed modes
Allowed modes being set must be a subset of Supported modes.
Preferred mode being set must be a subset of Allowed modes.
2012-03-15 14:14:41 +01:00
Aleksander Morgado
9a4940c4b2 libmm-common: handle strings coming in capitals when building bands or modes 2012-03-15 14:14:41 +01:00
Aleksander Morgado
ebbfe9cb61 libmm-common: print modes string with capitals for the acronyms 2012-03-15 14:14:40 +01:00
Aleksander Morgado
15079bcb2d api,header: fix flags to ensure they all start with 1 2012-03-15 14:14:40 +01:00