summaryrefslogtreecommitdiffstats
path: root/src/modem.c
AgeCommit message (Collapse)AuthorFilesLines
2010-06-09Add support for Features property on modem interfaceMarcel Holtmann1-12/+74
2010-05-27Use ofono_bool_t instead of bool in modem API.Pekka Pessi1-5/+5
2010-05-27modem: Fix inconsistent statePekka Pessi1-3/+6
Keep modem state consistent if sim is removed while set_online driver call is pending. This results in set_online callback being called and modem entering an invalid state.
2010-05-26Fix: Go to online state if set_online is NULLDenis Kenzior1-0/+9
2010-05-26Refactor: no need for dummy_online_callbackDenis Kenzior1-13/+2
2010-05-26Fix: Don't allow setting online before sim readyDenis Kenzior1-6/+9
2010-05-26Refactor: Break up set_online_callbackDenis Kenzior1-19/+21
- Break up into two functions, one for online and one for offline - No longer the need for online_pending variable
2010-05-26Refactor: flush_atomsDenis Kenzior1-7/+29
The current implementation did not take care of the case where the head of the list was removed
2010-05-26Refactor: Don't use ofono_ prefixDenis Kenzior1-4/+4
Only meant for oFono public API
2010-05-26Refactor: The macros are no longer neededDenis Kenzior1-20/+14
2010-05-26Refactor: Don't use ofono_ prefixDenis Kenzior1-5/+5
Only to be used for ofono public API
2010-05-26Refactor: Don't use ofono_ prefixDenis Kenzior1-26/+22
only meant for public API
2010-05-26Refactor: Don't use ofono_ prefixDenis Kenzior1-28/+27
ofono_ prefix is meant for public API
2010-05-26Fix: minor style issuesDenis Kenzior1-1/+1
2010-05-26Add: Online property to modemPekka Pessi1-42/+158
The online/offline state is changed with the new set_online() modem driver method. In order to track atoms, there are modem states as follows: - OFONO_MODEM_STATE_POWER_OFF - OFONO_MODEM_STATE_PRE_SIM - OFONO_MODEM_STATE_OFFLINE - OFONO_MODEM_STATE_ONLINE Atoms are added with driver methods pre_sim(), post_sim() and post_online(). Atoms are removed by modem core when the state changes.
2010-05-19core: Trivial whitespace errorDenis Kenzior1-1/+1
2010-05-19Add network time supportAki Niemi1-0/+1
Adding a new notify function in the netreg atom for notifying a received Network Identification and Timezone (NITZ) indication. This data is consumed via a nettime plugin, of which there is also an example.
2010-05-10Fix: Don't remove wrong atomsAndrzej Zaborowski1-3/+6
When the state goes from INSERTED to NOT PRESENT and we have not advanced past the SIM PIN entry, we remove the pre_sim atoms. Similarly, if we advanced past the SIM PIN stage and subsequently removed the SIM, the pre_sim atom list should not be tampered with.
2010-04-15Fix: Don't crash by calling sim watch too earlyDenis Kenzior1-1/+0
The modem sim watch is only watching for removed and ready conditions, so no need to call it prematurely
2010-04-15Fix: Make distcheck happyDenis Kenzior1-1/+0
2010-04-15Refactor: Keep separate lists for pre/post atomsDenis Kenzior1-53/+33
2010-04-15Refactor: use a switch/case to make more readableDenis Kenzior1-14/+11
2010-04-15Remove post-sim atoms after SIM is extracted.Andrzej Zaborowski1-0/+40
2010-04-15Add Sim Toolkit atomAndrzej Zaborowski1-0/+1
- Add ofono_stk atom in stk.c - Move envelope command from sim driver to stk driver
2010-04-15Extend sim-ready watch with card insert/ejectAndrzej Zaborowski1-5/+6
2010-02-12Fix: Trivial mistakeDenis Kenzior1-3/+0
2010-02-12Add support for modem namesDenis Kenzior1-0/+25
2010-02-10Clean: no error path neededInaky Perez-Gonzalez1-1/+6
Remove unneeded error path and document the rationale behind it in __ofono_modem_get_list() and manager_get_properties().
2010-01-06Refactor: Allow persisent modem namesDenis Kenzior1-4/+11
2010-01-01Update copyright informationMarcel Holtmann1-1/+1
2009-12-17Style: Fix a few more occurences of if/elseDenis Kenzior1-1/+2
See Linux coding style document for details
2009-12-08Fix: Be more paranoid even during shutdownDenis Kenzior1-1/+1
2009-12-08Fix: Print a warning in set_poweredDenis Kenzior1-4/+8
If ofono_modem_set_powered is used with no driver set, print a warning
2009-12-08Fix remove all atoms in ofono_modem_set_poweredZhenhua Zhang1-0/+3
We should remove all atoms when we disable the modem. In function set_powered, we remove all atoms if modem is powered down by dbus call.
2009-12-08Remove: Unused code related to modem powered prefsDenis Kenzior1-8/+0
2009-12-08Revert: Previous powered patchDenis Kenzior1-4/+4
2009-12-08Fix a crash during isimodem initializationAlexander Kanavin1-4/+4
2009-12-04Refactor: call id allocation / releaseDenis Kenzior1-3/+7
2009-12-03Fix: Exit right awayDenis Kenzior1-0/+3
If no plugin needs to run the eventloop to shutdown cleanly, exit right away.
2009-12-02Fix: Paste errorDenis Kenzior1-2/+0
2009-12-02When SIGTERM is received, run the event loopDenis Kenzior1-12/+48
This feature will continue running the event loop for another 10 seconds or so or until all the modems have been shut down. This will allow the modem drivers to properly shutdown their respective devices.
2009-12-02Refactor: Set powered to false if disable timedoutDenis Kenzior1-1/+12
2009-12-02Fix: unregister modem when unregistering driverDenis Kenzior1-0/+12
2009-12-02Refactor: modem de-registrationDenis Kenzior1-9/+3
2009-12-02Fix: Remove all atoms when attempting to power offDenis Kenzior1-9/+9
The current behavior is to remove atoms when the modem has powered off successfully. The modem driver must now take special precautions to cancel all pending actions of the atom drivers, since they would have been destroyed.
2009-11-26Fix: Reset call_ids when modem is powered offZhenhua Zhang1-0/+3
2009-11-11Fix: Emit Manufacturer, not SerialDenis Kenzior1-1/+1
2009-09-28Fix: Report registered modems properlyDenis Kenzior1-2/+2
2009-09-22Fix: Comparison should be against negative errnoDenis Kenzior1-1/+1
2009-09-17Split populate modem driver methodDenis Kenzior1-12/+45
Introduce two new methods - pre_sim - SIM is not inserted or locked. This should populate the modem with atoms that can be used without the SIM. Generally this is the devinfo atom, the sim atom and the voice call atom (emergency calls only) - post_sim - SIM is ready. This method should populate the modem with the remaining atoms