Commit Graph

784 Commits

Author SHA1 Message Date
Denis Kenzior 6f9b5be3d5 Fix: Reset netreg to 0 when unregistered 2009-10-26 16:18:17 -05:00
Andrzej Zaborowski 939be2adc2 Refactor: Make GPRS use information from netreg 2009-10-26 13:34:41 -05:00
Andrzej Zaborowski 53414483d3 Fix: Don't attach if searching
Don't ask driver to attach GPRS if modem is already searching for an
operator.
2009-10-26 13:32:26 -05:00
Andrzej Zaborowski 4779ed055a Fix interpretation of new GPRS registration status signal. 2009-10-26 13:29:41 -05:00
Denis Kenzior 50ae504bc6 Fix: Fix segfault from improperly initialized data 2009-10-24 12:39:31 -05:00
Andrzej Zaborowski 87f4e3890d Just return success when value already set in SetProperty. 2009-10-24 10:27:06 -05:00
Denis Kenzior 722204ae6c Fix: Connect up gprs and gprs_context 2009-10-23 17:05:56 -05:00
Denis Kenzior 7faa34d235 Fix: Typo in property name 2009-10-23 17:05:56 -05:00
Denis Kenzior 14c116be36 Remove unused code and make compiler happy 2009-10-23 17:05:56 -05:00
Denis Kenzior a3b736afe5 Add implementation of GPRS context atom 2009-10-23 17:05:56 -05:00
Denis Kenzior fa800e5852 Fix: Rename Flag 2009-10-23 17:05:56 -05:00
Denis Kenzior f9a8ea1b08 Deactivate the context for removal if active 2009-10-23 17:05:56 -05:00
Denis Kenzior 08eda615c5 Refactor/Implement basic activate logic
Not yet tested
2009-10-23 17:05:55 -05:00
Denis Kenzior a12d252609 Add stub of gprs context deactivated 2009-10-23 17:05:55 -05:00
Denis Kenzior 7587fe0de3 Fix: Style 2009-10-23 17:05:55 -05:00
Denis Kenzior 46dde73ab2 Remove unused functions 2009-10-23 17:05:55 -05:00
Denis Kenzior 369d9f8f33 Refactor: Deactivate all contexts function 2009-10-23 17:05:55 -05:00
Denis Kenzior 752468b16e Remove unused function 2009-10-23 17:05:55 -05:00
Denis Kenzior 8e0797ca24 Refactor: GPRS Remove Context function 2009-10-23 17:05:55 -05:00
Denis Kenzior b2c2ed5fdd Refactor: GPRS CreateContext function 2009-10-23 17:05:55 -05:00
Denis Kenzior f80df022d4 Remove unused function 2009-10-23 17:05:54 -05:00
Denis Kenzior 87b5d16c14 Refactor: context object path list 2009-10-23 17:05:54 -05:00
Denis Kenzior 58d44f6be9 Refactor: Context set_property function 2009-10-23 17:05:54 -05:00
Denis Kenzior 7409a6761f Refactor: Context get_properties 2009-10-23 17:05:54 -05:00
Denis Kenzior cbaf0aacfc Refactor: context finding by path 2009-10-23 17:05:54 -05:00
Denis Kenzior 6f7ef99759 Remove unused function 2009-10-23 17:05:54 -05:00
Denis Kenzior 65f77b2b3a Add CID range function 2009-10-23 17:05:54 -05:00
Denis Kenzior b745ebcf6f Refactor: Primary Context dbus reg/unreg 2009-10-23 17:05:54 -05:00
Denis Kenzior 7b3ab433eb Refactor: Use ofono_bool_t instead of int 2009-10-23 17:05:54 -05:00
Denis Kenzior 05d7cf9ee1 Refactor: Rename GPRS type enums 2009-10-23 17:05:54 -05:00
Denis Kenzior bb7945d6aa Refactor: Split up GPRS into two atoms
Split up GPRS into two atoms: GPRS and GPRS Context.  GPRS will handle
the areas of GPRS network registration, basic GPRS capability detection
and attach / detach.

GPRS Context will handle setting up / activating / deactivating the
indicidual contexts.

This will allow us to use the generic GPRS atom for most devices while
customizing the GPRS context accordingly.
2009-10-23 17:05:54 -05:00
Denis Kenzior 729d580692 Add InUse error type 2009-10-23 17:05:53 -05:00
Denis Kenzior 0b68ad7e32 Second round of renaming 2009-10-23 17:05:53 -05:00
Denis Kenzior 88c0f77a58 Refactor: First round of renaming 2009-10-23 17:05:53 -05:00
Denis Kenzior b2fd75014a Refactor: rename data-connection to gprs
Keep the name specific to GSM, other implementations will probably
require their own interfaces
2009-10-23 17:05:53 -05:00
Andrzej Zaborowski f43efa8a5f Add GPRS support
This commit implements the GPRS context setup and teardown according to
doc/dataconnectionmanager-api.txt

One issue with the AT implementation of the api is that "Powered" (a
read-write property) can be set independently of "Attached" (read-only
property) and remain set when "Attached" is clear.  The semantics would
be that the network doesn't have resources to let the modem attach,
but the modem waits for the resources to become available and then
attaches.  On AT the modem is in this state only when executing +CGATT,
so currently the code will rerun +CGATT as soon as the previous one
returns with error, probably starving other commands.  A possible
workaround would be for "Powered" to flip back to False after the modem
fails to attach once, or give up on having separate properties.
Alternatively we could re-try to attach periodically but on one modem
I've tried +CGATT fails after about 1 minute (that's the Calypso) and
on another only about 0.5s (Nokia phones with AT emulation).

When "Powered"  is set and "RoamingAllowed" is clear and we manage to
attach and find that we're roaming, ofono resets "Powered".

We may want to catch the user trying to dial *99***1# which is the
backwards compatibility quirk for old modems (same way ofono parses
USSD strings).
2009-10-23 17:05:53 -05:00
Olivier Le Thanh Duong 6d9bd02480 Migrate from RFC2822 to ISO8601 2009-10-21 19:04:47 -05:00
Andrzej Zaborowski 15c07346df Parse +CUSD responses. 2009-10-16 17:46:28 -05:00
Denis Kenzior eb2c60469c Fix: Don't return NULL if message is empty
Empty SMS messages are in sms_decode_text are returned as NULL, e.g.
error.  This shouldn't be the case, empty messages should be reported
and signaled.
2009-10-16 13:19:11 -05:00
Andrzej Zaborowski 30b86c1dda Fix: Skip over empty messages 2009-10-16 11:50:42 -05:00
Andrzej Zaborowski 2d992d7912 Always return a string from telephony_error_to_str.
So that it can be used as a printf argument directly.
2009-10-16 11:14:02 -05:00
Andrzej Zaborowski 5773e30373 Refactor: Move network registration status utils
Move the status to string functions to common.c so that they can be
reused in data connection related network registration code.
2009-10-16 11:12:43 -05:00
Denis Kenzior 9f9327e1e5 Fix: Quiet a warning on some compilers 2009-10-15 16:15:18 -05:00
Denis Kenzior 1a6f392d8f Rename function to express its purpose better 2009-10-08 12:57:26 -05:00
Pekka Pessi 0063db3a74 Allow sending DTMF tones in alerting state
2nd stage dialing may be done before call gets connected.
2009-10-08 12:55:41 -05:00
Pekka Pessi 72d68e5001 Use swap_without_accept method, if present 2009-10-08 12:55:17 -05:00
Denis Kenzior 60118757b2 Fix: Don't crash when cached ef structure differs 2009-10-05 16:20:55 -05:00
Marcel Holtmann 647ebdfd13 Fix pointer size problem with GUINT_TO_POINTER and unsigned short 2009-10-04 13:02:56 +02:00
Denis Kenzior 9ab5eba1da Fix: Handle empty SMSes
If an SMS is empty (e.g. nothing to unpack) then we should simply
continue on.
2009-10-02 19:26:11 -05:00
Denis Kenzior 6ef9a4b2dd Fix: Make const correct 2009-10-02 19:25:44 -05:00
Denis Kenzior f7c97ca10a Fix: Add additional error checking 2009-10-02 18:25:56 -05:00
Denis Kenzior c8150fc120 Use small caps for 2G/3G functions 2009-10-02 18:25:56 -05:00
Denis Kenzior 8bf64ef07d Add utility to parse 3G get response data
Based on ETSI 102.221
2009-10-02 18:25:56 -05:00
Denis Kenzior c9a2eedc08 Add utility to parse 2G GET_RESPONSE data
This format is described in 51.011 and the older 11.11.  It is not
supported by newer 3G UICC based devices & sim card combinations
2009-10-02 18:25:56 -05:00
Denis Kenzior c8e515fef8 Add utility to lookup files in EF db 2009-10-02 18:25:56 -05:00
Denis Kenzior be55ba4ab3 Refactor: Move elementary file type checking
Every single EF read callback checks the file type reported out of the
SIM is what it expects.  Instead this should be done in one place and
the errors reported accordingly
2009-10-02 18:25:56 -05:00
Denis Kenzior 6d9ec89259 Add basic elementary file database 2009-10-02 18:25:55 -05:00
Denis Kenzior 128d129ef5 Fix: different signedness comparison 2009-09-29 14:56:23 -05:00
Denis Kenzior 61cecf7256 Fix: Don't try to set a value if already set 2009-09-29 14:56:22 -05:00
Denis Kenzior 853bd2d6da Add Muted property to CallVolume atom 2009-09-29 14:56:22 -05:00
Denis Kenzior 2fca5c7f08 Refactor: Call Volume set_property handling 2009-09-29 14:56:22 -05:00
Denis Kenzior b8bc7a4c61 Get rid of unused define 2009-09-29 14:56:22 -05:00
Denis Kenzior 16744dc718 Get rid of unused variables 2009-09-29 14:56:22 -05:00
Denis Kenzior f9d0cd09d4 Refactor: Assume driver will set call volume
Driver should use the ofono_call_volume_set_microphone_volume and
ofono_call_volume_set_speaker_volume functions.
2009-09-29 14:56:22 -05:00
Denis Kenzior 158f9ac1d5 Don't use ofono_ prefix for static functions 2009-09-29 14:56:22 -05:00
Denis Kenzior 6a271dd258 Refactor: Break up call volume notify 2009-09-29 14:56:22 -05:00
Denis Kenzior d76f674794 Cleanup: Do not expose DBus details to drivers 2009-09-29 14:56:21 -05:00
Zhenhua Zhang f5e24369ca Add call volume interface to adjust speaker and mic volume 2009-09-29 14:56:21 -05:00
Denis Kenzior 274cd012c4 Fix: Report registered modems properly 2009-09-28 11:18:50 -05:00
Denis Kenzior bb746b3e9d Fix efli being removed prematurely 2009-09-28 11:18:50 -05:00
Marcel Holtmann 0e9f9d8bc8 Fix segmentation fault from SIM reading on Calypso modem 2009-09-25 14:07:33 -07:00
Denis Kenzior bbe49a1b6e Fix whitespace 2009-09-24 10:23:37 -05:00
Denis Kenzior 5b2852d8b4 Add initial support for LockedPins property 2009-09-24 10:23:37 -05:00
Denis Kenzior dc644108bf Ignore EFli if the first entry is empty 2009-09-23 17:28:15 -05:00
Andrzej Zaborowski c98e99aef2 Remove unused struct field. 2009-09-23 14:27:49 -05:00
Andrzej Zaborowski cb19aa987f Rename eflp_format to efli_format, semantically opposite. 2009-09-23 14:27:26 -05:00
Denis Kenzior cfcf7e6516 Simplify: Use dbus_message_iter_get_args 2009-09-22 11:24:21 -05:00
Denis Kenzior b8dcd905fb Remove unused structure 2009-09-22 11:24:21 -05:00
Marcel Holtmann 5f4340f186 Fix unused variable issue from last commits 2009-09-23 10:47:29 -07:00
Denis Kenzior 863210f7c0 Fix: Comparison should be against negative errno 2009-09-22 09:36:55 -05:00
Denis Kenzior 17cedf0eb7 Don't try to Lock or Unlock SIM PIN2 2009-09-22 00:07:07 -05:00
Denis Kenzior 2c4c27654c Make sure we try to lock/unlock/change only PINs 2009-09-22 00:07:07 -05:00
Denis Kenzior 5fd083f6f4 Refactor: Do not use int instead of enum
27.007 does not define an enumeration for SIM PIN/PUK values.  This
should be handled by ofono enum instead
2009-09-22 00:07:07 -05:00
Denis Kenzior f599036ed0 Add LockPin and UnlockPin functions 2009-09-22 00:07:06 -05:00
Denis Kenzior 63416e2851 Rearrange sim password enum 2009-09-22 00:07:06 -05:00
Denis Kenzior d67ded70ea Fix: Make sure pin isn't empty 2009-09-22 00:07:06 -05:00
Denis Kenzior 1faf467d87 Get rid of 1 line function 2009-09-22 00:07:06 -05:00
Denis Kenzior 9f27be58bc Move some stuff around 2009-09-22 00:07:06 -05:00
Andrzej Zaborowski ee02b14836 Do PIN authentication
This adds checking whether PIN is required during SIM initialisation and
delaying the sim ready notifications until after correct PIN is given.
2009-09-22 00:07:06 -05:00
Denis Kenzior b1c8b291f5 Assume sms is registered only when sim ready 2009-09-22 00:07:06 -05:00
Denis Kenzior 6914b11269 Assume cbs is registered after sim ready 2009-09-22 00:07:06 -05:00
Denis Kenzior 84515b9d39 Assume netreg is registered when sim ready 2009-09-22 00:07:06 -05:00
Denis Kenzior 91555b9165 Refactor language preference parsing
- Make sure to handle capital / lower case ISO639 strings
- Properly handle the case where files are empty / unused
- Don't emit the signal unless the preferences are useable
- Simplify the logic and be a bit more readable
2009-09-17 14:10:12 -05:00
Denis Kenzior ef5eb6139a Simplify function logic 2009-09-17 12:18:48 -05:00
Denis Kenzior ee33bc6ab7 Use g_ascii_isdigit 2009-09-17 12:17:42 -05:00
Denis Kenzior 8dd574d842 Fix potential memory leak 2009-09-17 12:04:56 -05:00
Denis Kenzior b3ec3f5fef Rename function to be more clear 2009-09-17 12:04:45 -05:00
Denis Kenzior e2a4c4bee8 Use existing function for converting to iso639 2009-09-17 11:53:37 -05:00
Denis Kenzior 26f15e30a8 Assume CBS is registered when SIM ready 2009-09-17 11:53:19 -05:00
Andrzej Zaborowski 623c23c12f Present list of preferred languages on SimManager interfce.
We try to detect the old (2G / 2G+, 51.011) EFlp format and deal
with the file contents accordingly.
2009-09-17 11:42:49 -05:00
Denis Kenzior 0698fc2788 Split populate modem driver method
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
2009-09-17 10:14:02 -05:00
Denis Kenzior 971ef1c305 Add reading of various CBS related EFs
- EFcbmi - Cell Broadcast Identifiers
- EFcbmir - Cell Broadcast Identifier Ranges
- EFcbmid - Cell Broadcast Identifiers for Data Download
2009-09-16 17:09:58 -05:00
Denis Kenzior b83c7acfc9 Fix: do not leak memory, cleanup the topic list 2009-09-16 04:53:41 -05:00
Marcel Holtmann 75719f0c01 Fix compilation error with missing return value 2009-09-12 09:01:05 +02:00
Denis Kenzior 03ce875a7b Support base station name cell broadcasts
If we receive an immediate cell-specific cell broadcast, report it as
the base station id up to netreg atom
2009-09-11 21:38:08 -05:00
Denis Kenzior 6f86a8d0a6 Add utility for setting the netreg base station 2009-09-11 21:35:31 -05:00
Denis Kenzior d54f588355 Enable registration / location updates for CBS
- This tracks the current Location Area Code / Cell ID and PLMN.  If any
  of these change, the assembly is notified.  This is required to
  implement proper CBS message duplicate detection according to 23.041
2009-09-11 16:25:30 -05:00
Denis Kenzior f03b97c635 Add network registration status watch capability 2009-09-11 16:25:15 -05:00
Denis Kenzior 227ac8f2e0 Remove extra free of cbs assembly 2009-09-11 15:33:51 -05:00
Denis Kenzior 5e754c6518 Create watchlists during register 2009-09-11 14:06:18 -05:00
Denis Kenzior 8858669857 Port sim ready watch to __ofono_watchlist 2009-09-11 14:05:39 -05:00
Denis Kenzior 32fc30fa02 Refactor various watch functions
Use a common core kernel for all the watcher registrations /
notifications.  This is now done in watch.c
2009-09-11 12:39:53 -05:00
Denis Kenzior 27cfc00eba Add netreg getter functions
- Get Location, CellID
- Current Operator
- Registration Status
- Technology
2009-09-10 18:19:48 -05:00
Denis Kenzior 40ef883fe4 Add ability to expire PLMN wide messages 2009-09-10 17:40:16 -05:00
Denis Kenzior d498ec9f2a Fix unused variable 2009-09-10 16:29:56 -05:00
Andrzej Zaborowski 6f675b3148 Keep modem->powered_pending up to date after set_powered.
Without this once a request to power up the modem fails, modem.c won't
retry even when asked.
2009-09-10 16:29:56 -05:00
Andrzej Zaborowski ac5603d225 Fix generation of Message Waiting PropertyChanged signals. 2009-09-10 16:29:55 -05:00
Andrzej Zaborowski a82c567f0c Fix parsing of Enhanced Voicemail notifications. 2009-09-10 16:29:55 -05:00
Denis Kenzior 78b853a97d Add initial Cell Broadcast atom implementation 2009-09-10 16:13:16 -05:00
Denis Kenzior 2ade0f6b05 Handle empty topic range lists 2009-09-10 16:13:16 -05:00
Denis Kenzior c559aa42f6 Make cbs_topic_ranges_to_string work with all ids 2009-09-10 16:13:16 -05:00
Denis Kenzior 52d3c235d5 Add CBS topic range functions 2009-09-10 16:13:15 -05:00
Denis Kenzior 1acf350190 Fix make distcheck 2009-09-08 16:52:12 -05:00
Denis Kenzior 3449b2c0b5 Rework SMS fragment backup storage
The SMS address can actually contain other characters than 0-9, +, *, #,
particularly when the alphanumeric address type is used.  This is
commonly used by services such as Google or carrier specific SMS
services.

Rework the SMS address storage to simply re-use the SMS address pdu
format, which consists of up to 12 hex-encoded bytes.
2009-09-08 16:40:56 -05:00
Denis Kenzior 47bcf1ac18 Fix style issue 2009-09-08 16:40:38 -05:00
Denis Kenzior 785686ec6b Fix off by one error in assembly serialize
The proper PDU was not being written out fully
2009-09-08 16:39:16 -05:00
Andrzej Zaborowski 06ea6137a3 Write state of SMS assembly to disk and restore on startup.
This way we can continue receiving segmented messages over a reset or
crash.
2009-09-08 14:44:39 -05:00
Denis Kenzior 110dfb9e2e Fix style issue 2009-09-08 14:15:40 -05:00
Andrzej Zaborowski 17cb0ce3c4 Move create_dirs to storage.c, add file read/write utilities 2009-09-08 13:34:07 -05:00
Denis Kenzior b2bde46bfb Do supported dialect detection in sms.c 2009-09-08 12:45:04 -05:00
Denis Kenzior b1932334da Refactor SMS language dialect encoding / decoding
- Introduce new enum gsm_dialect instead of unsigned char arguments
- Use ISO639 3 letter codes for conversion tables
- Use a single lookup table instead of 4 different ones
2009-09-08 12:44:51 -05:00
Denis Kenzior bfbe142774 Fix style issues 2009-09-08 09:42:29 -05:00
Aki Niemi dab84882af Use SMS national language identifier when decoding
Adds support for decoding SMSs encoded using national language single
shift and locking shift tables.
2009-09-08 14:16:24 +03:00
Aki Niemi 462b0b8249 Add support for national language variants
Add API for supporting character conversion using national language
variants. Also, add conversion tables for Turkish, Spanish and
Portuguese, and fix the default table. The lookup algorithms were
tweaked to support multiple tables.
2009-09-08 14:16:23 +03:00
Marcel Holtmann 154102e873 Add modem properties for booleans 2009-09-08 09:12:19 +02:00
Denis Kenzior 8e449d6184 Some modems don't return from ATD until connected
Yet they send progress indications all the way up to connected, which
breaks the current logic.
2009-09-04 20:37:50 -05:00
Denis Kenzior 88ebea5aca Don't emit disconnect reason if unknown 2009-09-04 20:37:50 -05:00
Denis Kenzior adaa72533a For incoming call case, send hangup
CHLD=1X doesn't work for incoming calls on some devices.  This is
more portable
2009-09-04 20:37:49 -05:00
Denis Kenzior 05d62d82a5 Get rid of stupid debug message 2009-09-03 23:20:22 -05:00
Denis Kenzior e9a87abdc5 Fix emitting Modems Property in the wrong place 2009-09-02 19:49:03 -05:00
Denis Kenzior 76b6e52d40 Squash compiler warning 2009-09-02 17:39:23 -05:00
Denis Kenzior 7a95c41fab Get rid of node argument in ofono_modem_create 2009-09-02 17:39:23 -05:00
Denis Kenzior 03a0fde2f4 Add simple utility to validate paths 2009-09-02 17:39:23 -05:00
Denis Kenzior 8e62522575 Add modem property capability
Add ofono_modem_set_string & ofono_modem_get_string
Add ofono_modem_set_integer & ofono_modem_get_integer
2009-09-02 17:39:23 -05:00
Denis Kenzior 422df0edfb change int vendor to unsigned int vendor 2009-09-01 21:39:02 -05:00
Denis Kenzior 5ce0de14dc Add ofono_modem_get_powered 2009-09-01 20:10:31 -05:00
Denis Kenzior 4064f4ba73 Add vendor flag capability to voicecalls 2009-09-01 18:14:59 -05:00
Denis Kenzior e5577046f0 Add vendor flag capability to ussd 2009-09-01 18:14:58 -05:00
Denis Kenzior afb0e2b854 Add vendor flag capability to ssn 2009-09-01 18:14:58 -05:00
Denis Kenzior 8d380f8fa0 Add vendor flag capability for sms 2009-09-01 18:14:58 -05:00
Denis Kenzior aecf42646e Add vendor flag capability to sim 2009-09-01 18:14:58 -05:00
Denis Kenzior 1fb9ecca46 Add vendor flag capability to phonebook 2009-09-01 18:14:58 -05:00
Denis Kenzior 271b042488 Add vendor flag capability to netreg 2009-09-01 18:14:58 -05:00
Denis Kenzior c7d35dd039 Add vendor flag capability to devinfo 2009-09-01 18:14:58 -05:00
Denis Kenzior 933f803967 Add vendor flag to call-settings 2009-09-01 18:14:58 -05:00
Denis Kenzior 390bd82109 Add vendor parameter to call-meter 2009-09-01 18:14:57 -05:00
Denis Kenzior 7ee954b28a Add vendor flag to call-forwarding 2009-09-01 18:14:57 -05:00
Denis Kenzior 15b1a733b0 Introduce vendor parameter to call-barring 2009-09-01 18:14:57 -05:00
Denis Kenzior a4e5c27e1a Fix being able to set powered after failure
If enable failed, subsequent attempts will also fail.
2009-08-31 23:03:37 -05:00
Denis Kenzior aeebbfa67e Don't return sdn numbers until ready 2009-08-31 15:12:38 -05:00
Denis Kenzior d1ab58479d Simplify EFsdn reading code 2009-08-31 15:12:38 -05:00
Denis Kenzior a7202d8d83 Rename MNCLength to MobileNetworkCodeLength 2009-08-31 15:12:37 -05:00
Denis Kenzior 37deaa6651 Refactor sim mnc length 2009-08-31 15:12:37 -05:00
Denis Kenzior 526e1a6164 Style Fix 2009-08-31 15:12:37 -05:00
Denis Kenzior efdf84b62c Simplify nested ifs 2009-08-31 15:12:37 -05:00
Denis Kenzior a96fde1362 Simplify overly complicated code 2009-08-31 15:12:37 -05:00
Andrzej Zaborowski 7ecebc9a31 Expose service dialling numbers stored on SIM through SimManager. 2009-08-31 15:12:37 -05:00
Andrzej Zaborowski f21930f04e Decode and encode alpha-identifier fields
Add identifier argument to sim_adn_parse and sim_adn_build.

Also fix the number length passed to extract_bcd_number in sim_adn_parse.
2009-08-31 15:12:37 -05:00
Andrzej Zaborowski 6552bc668d Read EFad and expose the IMSI MNC length (2-3) 2009-08-31 15:12:37 -05:00
Denis Kenzior 45e03f4173 Add debug to modem_create 2009-08-30 13:29:44 -05:00
Denis Kenzior 96dc40b107 Make history drivers work again 2009-08-29 10:47:26 -05:00
Aki Niemi 4148f82e4e Fix typo in technology name 2009-08-25 10:47:19 +03:00
Marcel Holtmann 70aab2a826 Convert to fully non-recursive build system 2009-08-24 23:49:40 -07:00
Marcel Holtmann 7d3d52009d Use script to generate list of builtin plugin symbols 2009-08-24 19:05:41 -07:00
Marcel Holtmann d9a2bb1337 Use proper variables for various commands 2009-08-24 18:51:39 -07:00
Andrzej Zaborowski 64ade1c7c8 Fix getting the offset into sms fragment bitmap.
Otherwise only 64 fragments fit.
2009-08-21 19:46:39 -05:00
Denis Kenzior 038251eac5 Introduce the Modem driver API 2009-08-21 19:25:51 -05:00
Denis Kenzior 28b9d5d747 Fix unused variable l 2009-08-20 18:20:14 -05:00
Denis Kenzior e0ff90e6da Rename ofono_modem_*_userdata
Rename ofono_modem_get_userdata to ofono_modem_get_data
Rename ofono_modem_set_userdata to ofono_modem_set_data

For consistency with other drivers
2009-08-20 18:19:21 -05:00
Denis Kenzior 4fac5d1c73 Hide the ofono_modem datastructure 2009-08-20 16:58:01 -05:00
Denis Kenzior ca95c87dae Port history to the new atom API
Use __atom_foreach
2009-08-20 16:29:18 -05:00
Denis Kenzior 2fea7be017 Add __ofono_modem_foreach_atom function 2009-08-20 15:59:50 -05:00
Denis Kenzior b8589c7cdf Fix unused variable modem 2009-08-20 15:39:13 -05:00
Denis Kenzior 919aae6cd9 Fix unused function remove_all_watches 2009-08-20 15:39:13 -05:00
Denis Kenzior 6261b83dbf Fix unused variable modem 2009-08-20 15:39:13 -05:00
Denis Kenzior a81852b761 Remove unused function 2009-08-20 15:39:12 -05:00
Denis Kenzior aa9a0f6072 Remove unused function 2009-08-20 15:39:12 -05:00
Denis Kenzior ec3e0f5ce5 Fix implicit declaration of extract_bcd_number 2009-08-20 15:39:12 -05:00
Denis Kenzior 552351e252 Fix unused variable path 2009-08-20 15:39:12 -05:00
Denis Kenzior 191c521f9d Fix unused variable l 2009-08-20 15:39:12 -05:00
Denis Kenzior e711b0e62a Break out device info into a separate driver
The modem info ops (Serial, Manufacturer, etc) are broken into a
separate oFono atom.  This is mainly to support a proper modem device
driver infrastructure.  As a result the data structures have been
tweaked a little.

driver.h is now empty and has been removed.
2009-08-20 12:48:29 -05:00
Denis Kenzior 7abeb8e4a0 Use types.h instead of driver.h here 2009-08-20 12:48:28 -05:00
Denis Kenzior 8bbd68b2fd Remove unused variables 2009-08-20 12:48:28 -05:00
Denis Kenzior 3f76bbf782 Emit the DisconnectReason signal 2009-08-19 18:35:08 -05:00
Denis Kenzior d704ba7fc2 Make sure call history handles waiting calls
Missed waiting calls were not being handled properly
2009-08-19 18:35:08 -05:00
Denis Kenzior 04c12038ba Evolve the voicecall driver 2009-08-19 18:35:08 -05:00
Denis Kenzior 5b1f5ba084 Evolve the netreg driver 2009-08-19 18:35:07 -05:00
Denis Kenzior a5617250a1 Move mcc & mnc defines to types.h 2009-08-19 18:35:07 -05:00
Denis Kenzior 99cf14efcf Refine errors returned by message-waiting
If we have not initialized fully yet, return sim_not_ready error.
If we couldn't read EFmbi or not able to stat EFmbdn size properly, then
set mbdn_not_present to TRUE and always return not_supported error
2009-08-19 18:35:07 -05:00
Denis Kenzior 5999b418e8 Evolve message waiting low level API 2009-08-19 18:35:07 -05:00
Denis Kenzior a45007f91d Add a new SIM not ready error 2009-08-19 18:35:07 -05:00
Denis Kenzior 2b7cd7dede Update voicecalls to the new SIM API 2009-08-19 18:35:07 -05:00
Denis Kenzior 3f17e3eb79 Update network registration to the new SIM API 2009-08-19 18:35:07 -05:00
Denis Kenzior 2bf3e20d48 Update message waiting to the new SIM API 2009-08-19 18:35:06 -05:00
Denis Kenzior f19d0cba4e Remove traces of sim_manager from modem.c 2009-08-19 18:35:06 -05:00
Denis Kenzior 5e72405120 Evolve SIM driver 2009-08-19 18:35:06 -05:00
Denis Kenzior 3b043e9b1a Move ofono_destroy_fun to types.h 2009-08-19 18:35:06 -05:00
Denis Kenzior 1cd48d1abe Remove unneeded variable 2009-08-19 18:35:06 -05:00
Denis Kenzior 232e34bca9 Fix cut and paste error 2009-08-19 18:35:06 -05:00
Denis Kenzior f59aab7f15 Fix whitespace and style issues 2009-08-19 18:35:06 -05:00
Denis Kenzior 56e97cb406 Refactor ECC: Free the new_en_list
Avoid a potential memory leak in case the interface is removed during
the SIM read operation.
2009-08-19 18:35:06 -05:00
Denis Kenzior c4a349fdf9 Evolve SMS driver API 2009-08-19 18:35:06 -05:00
Denis Kenzior 21588cc5f8 Remove the use of driver.h 2009-08-17 17:14:01 -05:00
Denis Kenzior 60988bed9d Remove unused header 2009-08-17 17:12:12 -05:00
Denis Kenzior 56f1e412a0 Make distcheck happy 2009-08-17 17:08:03 -05:00
Denis Kenzior a3d9123ca0 Refactor ECC Support: Update when EFecc is read
We should start with a default set of ECC numbers which are always
available according to 22.101, even if no SIM present.  Then when
EFecc is read, we update the EmergencyNumbers property.  According to
22.101 the 112 and 911 numbers must always be available.  Since these
numbers can also be stored on the SIM itself, we must avoid duplication.
2009-08-17 17:06:38 -05:00
Denis Kenzior 2ebef58855 Refactor ECC Support: Don't bother with g_source
Don't bother playing the g_source tricks for EmergencyNumbers property
changed signal emission.  The list is not bound to change more than
once.
2009-08-17 16:03:01 -05:00
Denis Kenzior 2e432b6ca0 Refactor ECC Support: Free in right spot
The freeing of the emergency list should be in voicecalls_destroy
function, where the rest of the datastructure is being freed
2009-08-17 16:02:53 -05:00
Yang Gu 5a0d8709af Support emergency numbers 2009-08-17 15:51:40 -05:00
Denis Kenzior 72182c2e8f Get rid of unused enum 2009-08-17 15:33:50 -05:00
Denis Kenzior 95573a4d8d Move network-operator status enum out of common.h 2009-08-17 15:32:34 -05:00
Denis Kenzior 00f606b3e8 Move colr-status enum out of common.h 2009-08-17 15:31:46 -05:00
Denis Kenzior 29c122a9a9 Move colp-status enum out of common.h 2009-08-17 15:31:17 -05:00
Denis Kenzior f989e7844d Move clip-status enum out of common.h 2009-08-17 15:30:34 -05:00
Denis Kenzior 1e6bdb36ec Move clir-status enum out of common.h 2009-08-17 15:29:01 -05:00
Denis Kenzior fe2dc0292c Move ussd-status enum out of common.h 2009-08-17 15:27:04 -05:00
Denis Kenzior 75510e7cd5 Move call-forwarding-type enum out of common.h 2009-08-17 15:26:24 -05:00
Denis Kenzior 21b032d3f1 Fix invalid watch id being returned the first time
Should use pre-increment instead of post increment
2009-08-17 15:23:39 -05:00
Denis Kenzior 255c6ba0d9 Cleanup atom watches properly 2009-08-17 15:14:05 -05:00
Denis Kenzior 6d5090eafa Cleanup SSC entries if USSD exits first 2009-08-17 15:08:48 -05:00
Denis Kenzior 5abd3c14d8 Port call-settings to the new USSD API 2009-08-17 15:08:48 -05:00
Denis Kenzior 91789b2680 Port call-forwarding to new USSD API 2009-08-17 15:08:48 -05:00
Denis Kenzior c4d9393fa3 Get rid of unneeded variable 2009-08-17 15:08:48 -05:00
Denis Kenzior 65eb5e2089 Refactor call barring to the new USSD API 2009-08-17 15:08:48 -05:00
Denis Kenzior d5339edc44 Refactor supplementary service control strings
The registration was done by using the storage in the modem.  Refactored
to use the new atom watch APIs and storing the control entries in the
ussd atom itself
2009-08-17 15:08:43 -05:00
Denis Kenzior 229bb3a4ed Evolve the USSD API 2009-08-17 13:45:55 -05:00
Denis Kenzior 5fdc6fd395 Get rid of unused functions 2009-08-17 11:38:36 -05:00
Marcel Holtmann 6d73540f22 Use $(AM_V_GEN) for symbol export generation 2009-08-16 14:51:40 -07:00
Denis Kenzior 314c0facc3 Refactor cssn into ofono_ssn
Make this into a fully fledged entity, with a driver instead of the
current kludge.  This means modem drivers can actually choose whether
to instantiate a CSSN atom or not

Move the notification functions from voicecall.c into ssn.c.

Move the cssn.h header into include/ssn.h and refactor

Update call barring to utilize ofono_ssn and use the new atom_watch
functionality to detect when ssn has been added or removed
2009-08-14 18:49:01 -05:00
Denis Kenzior 6482d98e56 Add atom get_registered function 2009-08-14 18:47:12 -05:00
Denis Kenzior e36c8b1d5d Follow the more common glib convention for destroy 2009-08-14 17:06:59 -05:00
Yang Gu 3c6b6b908f Remove trailing whitespace 2009-08-14 16:35:34 -05:00
Denis Kenzior c48e739669 Fix whitespace issue 2009-08-14 16:35:02 -05:00
Denis Kenzior 9ca3c0e321 Utilize call_watches 2009-08-14 16:33:48 -05:00
Denis Kenzior 99e3fe8285 Move CALL_SETTINGS_INTERFACE define to dbus.h 2009-08-14 16:33:48 -05:00
Denis Kenzior ed1720ea36 Move PHONEBOOK_INTERFACE define to dbus.h 2009-08-14 16:33:48 -05:00
Denis Kenzior b82042c5e9 Move CALL_METER_INTERFACE define to dbus.h 2009-08-14 16:33:48 -05:00
Denis Kenzior f82b9a32fd Move CALL_FORWARDING_INTERFACE define to dbus.h 2009-08-14 16:33:48 -05:00
Denis Kenzior ae4ea4cd5e Move CALL_BARRING_INTERFACE definition to dbus.h 2009-08-14 16:33:48 -05:00
Denis Kenzior 2da0fc6070 Add call_watches utility 2009-08-14 16:33:48 -05:00