Commit Graph

203 Commits

Author SHA1 Message Date
Nandini Rebello 55e5a766f2 modem: add support to clear cached pins.
If the modem is powered off via D-Bus, clear any cached PINs to make
sure that automatic PIN entry behavior is not activated.
2019-01-23 17:49:53 -06:00
Jonas Bonn 652a717f3a modem: global data is pre-zeroed
Module-local and global data are BSS symbols and don't require
zero-initialization.
2018-10-29 14:04:50 -05:00
Giacinto Cifelli f20da0e7f9 modem: Implement ofono_modem_set_timeout_hint
this patch provides the handling for the modem-depending powered timeout

It provides the trivial implementation for
ofono_modem_set_powered_timeout_hint, introducing the ofono_modem
variable timeout_hint, used together with the existing ofono_modem
variable timeout.

The default value, previously hardcoded as a magic number, is provided
by the DEFAULT_POWERED_TIMEOUT define and set as soon as the
ofono_modem struct is created, and then can be overwritten by the
aforementioned ofono_modem_set_powered_timeout_hint.
2018-10-24 14:32:02 -05:00
Slava Monich 3c10ae7fb3 modem: Implement ofono_modem_get_voicecall 2018-07-02 10:34:25 -05:00
Slava Monich 3cb55b65cb modem: Implement ofono_modem_get_gprs 2018-04-27 11:13:23 -05:00
Christophe Ronco 895ca91d85 modem: Add SystemPath dbus property 2018-02-20 11:09:11 -06:00
Slava Monich 0797b23c5d dbus: Use dbus_validate_path
Instead of __ofono_dbus_valid_object_path
2018-01-18 10:53:28 -06:00
Slava Monich 61bbbb0d7a modem: Implement ofono_modem_get_sim 2017-10-05 11:22:54 -05:00
Denis Kenzior e6268d1eb7 devinfo: Implement ofono_devinfo_get_modem 2017-10-05 11:08:38 -05:00
Jonas Bonn a722cef201 modem: set_online is valid for AlwaysOnline modems
Calling set_online(TRUE) for an AlwaysOnline modem should succeed; the
modem is, after all, in the requested state when the call returns.
Returning not_implemented is not necessarily wrong, but it's a bit ugly.
2017-04-03 09:23:53 -05:00
John Ernberg ea0999c626 modem: Use g_slist_free_full 2016-04-22 15:29:08 -05:00
Denis Kenzior 6eeb896981 modem: Fix style 2016-03-31 10:16:23 -05:00
Samrat Guha Niyogi 93f3b200fc devinfo: Add support of IMEISV 2016-03-31 10:16:23 -05:00
Denis Kenzior 68e4007d7b modem: Don't move to pre-sim state in case of failure
In ofono_modem_reset, if the enable() callback fails, do not
proceed to the pre-sim state
2015-12-15 17:17:00 -06:00
Forest Bond 0e0eb227f2 modem: Support modem property "AlwaysOnline"
This can be set by the modem driver to indicate that the device is
always in the online state when it is enabled.  This is useful for
modem drivers that handle both CDMA and GSM devices.
2013-04-01 21:41:58 -05:00
Forest Bond b0ad1ecb8f modem: Allow setting boolean properties 2013-03-28 09:47:32 -05:00
Denis Kenzior 69820a7136 modem: Implement ofono_modem_find 2013-02-14 08:47:10 -06:00
Denis Kenzior 732bab46b5 modem: Handle RESETTING sim state 2012-11-22 06:57:00 -06:00
Denis Kenzior e6df03b420 modem: Add support for modem type TEST 2012-11-02 14:03:16 -05:00
Marcel Holtmann 67c6a01d46 modem: Add function for setting new driver type 2012-06-17 00:58:08 -07:00
Lucas De Marchi e0d6f9f0ce Do not set signature and reply in GDBus tables
Use GDBUS_* macros, so signature and reply fields are not set in each
method/signal.
2012-05-20 02:47:57 -07:00
Lucas De Marchi b3489f2ee8 Convert GDBus methods to use macro helpers
With these macro helpers we can separate in/out arguments and use their
own vector.
2012-05-20 02:47:57 -07:00
Henrique Dante de Almeida 924ee02ff7 Constify GDBus signal tables
Constify signal tables with the following command:

    find . -name '*.[ch]' -exec \
             sed -i 's/\(GDBusSignalTable .* =\)/const \1/g' {} \;
2012-05-20 02:47:56 -07:00
Henrique Dante de Almeida 63bbdebdf2 Constify GDBus method tables
Constify method tables with the following command:

find . -name '*.[ch]' -exec \
             sed -i 's/\(GDBusMethodTable .* =\)/const \1/g' {} \;
2012-05-20 02:47:56 -07:00
Marcel Holtmann 4ce0034803 modem: Add missing empty line 2012-04-12 12:09:32 +02:00
Denis Kenzior ae5829e984 modem: Use __ofono_atom_find
Also remove defunct comment about registered status
2012-01-18 13:01:16 -06:00
Denis Kenzior 28af056870 modem: Tweak produced path
For drivers that contain digits at the end the currently produced
path can be somewhat confusing.
2012-01-07 13:23:32 -06:00
Daniel Wagner 20d33aa924 modem: Add Type property to GetProperties result 2011-11-22 20:38:20 -06:00
Mikel Astiz b6f99b6200 devinfo: avoid crash if query_model not supported 2011-10-21 13:17:50 -05:00
Marcel Holtmann 7e6afe37bf core: Update copyright information 2011-10-10 13:39:42 -07:00
Marcel Holtmann efcfbe9d9d modem: Add some more debug outputs 2011-07-29 14:30:58 +02:00
Denis Kenzior c6c01110ec sim: Support SIM_STATE_LOCKED_OUT 2011-07-19 14:20:09 -05:00
Denis Kenzior 2f2436bc20 modem: Don't allow setting online unless powered 2011-04-28 09:48:48 -05:00
Denis Kenzior 240a01260f modem: Fix entering offline mode prematurely
A contextual change to __ofono_modem_find_atom has caused us to enter
into offline mode prematurely.  find_atom was changed to return only the
atoms that were registered, however the modem really has to know whether
the sim atom is created (not registered) in order to know whether to
wait for the SIM to be initialized or not.
2011-04-14 17:02:22 -05:00
Denis Kenzior ff04d53e32 modem: Tweak online logic if set_online is missing
In case set_online is missing, we should set online mode directly.  If
we're already online then set our state to Online, otherwise check if we
should get Online.
2011-04-04 23:48:41 -05:00
Denis Kenzior 4ee289a4ab modem: No need to set get_online on sim reset
When STK sends us a SIM Refresh resulting in a SIM reset, we should not
set the online state as the modem should still keep us online anyway.
2011-04-04 23:45:32 -05:00
Denis Kenzior 1b0c1a6416 modem: Fix minor style violations 2011-04-04 23:45:23 -05:00
Jeevaka Badrappan e933ca4260 modem: modem state decoupled from rf state 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan 0bb95c1bd8 modem: restrict operations allowed in emergency 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan aa6e379ee3 modem: add increment/decrement emergency mode api 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan c6cd422f25 modem: add Emergency property 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan e8d3066781 modem: add ofono_modem_get_emergency_mode api 2011-04-04 23:36:49 -05:00
Denis Kenzior 767d297263 modem: Only find registered atoms
Change the semantics of __ofono_modem_find_atom to only return
registered atoms.
2011-03-30 13:30:50 -05:00
Denis Kenzior 3e799ce8b4 devinfo: Register the devinfo atom 2011-03-30 13:30:01 -05:00
Denis Kenzior 774cb72930 modem: Add __ofono_modem_foreach_registered_atom 2011-03-30 13:04:42 -05:00
Denis Kenzior 192c0b62f4 modem: Remove more un-needed code 2011-03-30 13:04:31 -05:00
Mika Liljeberg 3c19134524 core: notify watches of already registered atoms 2011-03-30 12:26:19 -05:00
Olivier Guiter 351c701aac emulator: add support for +GCAP 2011-03-23 15:00:12 -05:00
Denis Kenzior ad181b690b sim: Tweak the behavior of sim_refresh slightly
Instead of notifying everyone of sim_inserted condition, we should
simply notify the modem directly.  It is the only one interested in this
particular change.

This partly reverts an earlier commit:
9498ad6b5633e350eb529f8efbe08270d95c8003
2011-02-17 15:09:16 -06:00
Andrzej Zaborowski 5815d9547c modem.c: Handle SIM Resets
The assumption so far was that SIM state would only go from
NOT_PRESENT -> INSERTED -> READY -> NOT_PRESENT because there's
no method to unauthenticate from SIM without removing.  We need to
be able to switch to INSERTED when SIM is being reset,
reinitialised, etc. because going to NOT_PRESENT and then
immediately INSERTED would be logically wrong.
2011-02-17 15:09:16 -06:00