Commit Graph

174 Commits

Author SHA1 Message Date
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
Frédéric Danis afe16ba22a emulator: always create emulators in offline state
this allows to fix problem when atom created in online state
are destroyed when modem goes to offline state
2011-02-17 11:25:27 -06:00
Denis Kenzior 4406da382c devinfo: Handle BT DUN +GMI/+GMM/+GMR commands 2011-02-16 00:23:44 -06:00
Denis Kenzior 3e69defe86 modem: Tweak online & powered watch APIs 2011-02-10 00:34:47 -06:00
Denis Kenzior 458fe585a0 modem: Fix up previous commit 2011-02-10 00:27:01 -06:00
Guillaume Zajac 2b50146a21 modem Add powered watch API 2011-02-10 00:27:01 -06:00
Jeevaka Badrappan 4d6eaf121c modem: M16 coding style fix 2011-02-05 07:05:32 -08:00
Marcel Holtmann ed99980cd3 modem: Simplify the modem lockdown modification 2011-01-26 09:51:41 +01:00
Marcel Holtmann 8637e31d1d modem: Be a bit more paranoid with lock_owner reset 2011-01-26 09:48:48 +01:00
Rémi Denis-Courmont 8c88ccaad9 modem: do not allow more than one client to lock down 2011-01-26 09:46:42 +01:00
Marcel Holtmann 2999252d15 modem: Add feature entry for supplementary services 2011-01-23 10:17:31 +01:00
Aki Niemi 9adc84ea88 core: Always return success to a no-op
A SetProperty that doesn't actually change the Online property's state
when no change to that state is pending, should not fail. It should
always succeed regardless of the current modem state.
2011-01-20 12:23:25 +01:00
Rafael Ignacio Zurita f92f0b5d47 gps: add new interface to feature map 2011-01-13 11:08:07 -06:00
Jeevaka Badrappan 480f7dffd9 core: M15 coding style fix 2011-01-12 08:06:58 -08:00
Denis Kenzior adda129e7c modem: Fix a typo
The modem should be offline not online
2010-12-22 19:28:37 -06:00
Denis Kenzior 3daf20216f modem: Implement some race-condition avoidance 2010-12-22 14:02:59 -06:00
Gustavo F. Padovan 655da893cb modem: add Lockdown property to Modem interface
Setting Lockdown to TRUE means power down the modem and hold a lock that
only permits the lock's owner power up the modem back. When released
it restores the last state of the modem before holding the lock.
2010-12-22 13:36:18 -06:00
Gustavo F. Padovan 8bdbdc2c7d modem: restore state when resetting the modem 2010-12-17 19:12:32 -06:00
Gustavo F. Padovan 5862e614fd Add ofono_modem_reset()
Some modems can screw up everything and then we will need to do a silent
reset of the modem. This patch take the modem back to the OFFLINE state.
2010-12-07 12:16:20 -06:00
Gustavo F. Padovan 42a90432e7 modem: only unref pending if it is a powered pending 2010-12-07 12:16:20 -06:00
Lucas De Marchi b210838e87 core: explicitly compare pointers to NULL
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/)

// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@

- !E
+ E == NULL
// </smpl>
2010-11-29 13:27:15 -06:00
Lucas De Marchi b1c159e6f6 text-telephony: add new interface to feature map 2010-11-24 09:00:40 -06:00
Denis Kenzior 80a8fd1a64 modem: Don't notify online watches the first time
We should not notify the online watches when we enter the OFFLINE state
for the first time.  We should only do so when we go from ONLINE state
into the OFFLINE state.
2010-11-22 09:56:22 -06:00
Denis Kenzior 60aceb3e71 modem: Miscellaneous style fixes 2010-11-22 09:54:25 -06:00
Andras Domokos d7fb7da021 modem: add modem online-offline watch 2010-11-22 09:53:41 -06:00
Jeevaka Badrappan 2d0cb92155 src: coding style fixes - rule M6 2010-11-22 05:07:52 -06:00
Marcel Holtmann d74471e4d9 modem: Fix small coding style issue 2010-11-19 11:40:31 +01:00
Denis Kenzior 5625c9728f modem: Fix up doc typo 2010-11-17 08:26:26 -06:00
Gustavo F. Padovan 8ae8deb44f Simplify ofono_modem_set_powered() logic 2010-11-15 07:39:16 -06:00
Denis Kenzior cfa956596c modem: Add ofono_modem_is_registered 2010-10-25 16:32:49 -05:00