Commit Graph

1533 Commits

Author SHA1 Message Date
Aki Niemi 5a1a5905d4 Refactor SIM driver 2010-01-14 10:33:47 +02:00
Aki Niemi e1548d2730 Refactor CBS driver 2010-01-14 10:32:57 +02:00
Aki Niemi 85df7a952a Clean up style issues 2010-01-14 10:32:56 +02:00
Aki Niemi 04a3c6cb09 Fix cell ID and LAC values 2010-01-14 10:31:13 +02:00
Marcel Holtmann d8ff829a2a Release 0.16 2010-01-13 13:17:24 -08:00
Denis Kenzior d9bb71e521 Fix: Don't try to unregister a null mcc/mnc
Network operators with null MCC & MNC are not registered, but we try to
unregister them.  Don't do this as it causes a crash.
2010-01-13 11:40:15 -06:00
Denis Kenzior 506eb11b02 Make setting CPHS MWIS actually work 2010-01-12 18:20:51 -06:00
Andrzej Zaborowski 6c1a997902 Persist CBS Topics list, handle EF-CBMI, EF-CBMIR.
The two SIM files are only used to bootstrap the topics list value
if there's no previous value.
2010-01-12 18:03:34 -06:00
Denis Kenzior 67e5efe7b3 Style: Extraneous space 2010-01-12 17:54:38 -06:00
Denis Kenzior 1b07274de8 Style: space after function argument comma pair 2010-01-12 17:54:38 -06:00
Denis Kenzior 60a0fc5a5c Style: Various issues 2010-01-12 17:54:37 -06:00
Denis Kenzior 2cde0841aa Style: Should be a space after if 2010-01-12 17:54:37 -06:00
Denis Kenzior 9b803223c6 Style: Various issues 2010-01-12 17:54:37 -06:00
Denis Kenzior 687c84a1ff Style: Various issues 2010-01-12 17:54:37 -06:00
Denis Kenzior 9bed04ca2f Style: Trailing whitespace & extra lines 2010-01-12 17:54:37 -06:00
Denis Kenzior bb0dfd9b6d Fix: Make the CPHS MWIS version actually work 2010-01-12 17:54:18 -06:00
Denis Kenzior 0fb3873e6d Refactor: Move copy-pasted code into a function 2010-01-12 17:53:56 -06:00
Denis Kenzior 5206f9a9dc Fix: Refactor error conditions 2010-01-12 15:57:23 -06:00
Denis Kenzior deb9d88669 Reorder CPHS initializatin order
Two issues
  - CPHS MWIS file must always be read, the specification isn't clear
    whether it depends on the Mailbox service to be available
  - CPHS MBDN file must be read after we read EFmbdn, otherwise it will
    not be processed properly
2010-01-12 15:55:19 -06:00
Denis Kenzior 0d7f8933ff Fix: Create a dedicated callback for syncs
When synchronizing CPHS MBDN, create a separate callback that doesn't
try to emit signals, etc since the main work has already been done when
EFmbdn was set successfully.
2010-01-12 15:53:19 -06:00
Denis Kenzior 476bd84b98 Remove #if 0 2010-01-12 15:51:28 -06:00
Denis Kenzior e9b40dbe7a Fix: Don't recurse infinitely
We try to keep the CPHS MBDN elementary file in sync with EFmbdn,
unfortunately we share the same callback, which leads to infinite
recursive writes.

Also cleanup the set_mbdn_request structure if the write fails.
2010-01-12 15:45:30 -06:00
Denis Kenzior 0382f64353 Refactor: Rename & Restructure cphs_support
- Rename to cphs_service_table to be more inline with the specification.
- Since the spec allows arbitrary length service tables, use an unsigned
  char * return instead of a short.
- Use bit_field function instead of defining an enum
2010-01-12 11:27:31 -06:00
Denis Kenzior 2b231c3f84 Rename: Rename CPHS Phase enums
Be more consistent with the 3GPP Phase names
2010-01-12 11:23:21 -06:00
Andrzej Zaborowski 96a93b5829 If EF-MWIS is not available use the CPHS version. 2010-01-12 11:12:41 -06:00
Andrzej Zaborowski f97d203392 Use CPHS version of mailbox numbers on SIM if 3GPP version not available.
Otherwise just try to keep the CPHS version of the files in sync.
2010-01-12 11:12:01 -06:00
Andrzej Zaborowski 637ca18af4 Retrieve CPHS phase (if any) from SIM. 2010-01-12 10:35:51 -06:00
Aki Niemi 8f99e50ce5 Remove trailing/leading whitespace 2010-01-11 11:08:42 +02:00
Aki Niemi 2617686d4a Fix new and renamed files in Makefile.am 2010-01-11 11:00:30 +02:00
Aki Niemi 63c2dd93b0 Refactor devinfo driver 2010-01-11 10:52:07 +02:00
Aki Niemi 0c7a15b2bd Add support for modem control
This adds support to the PN_MTC server, allowing querying and control
of the modem power state.
2010-01-11 10:52:07 +02:00
Aki Niemi 862358b916 Refactor netreg driver 2010-01-11 10:51:01 +02:00
Aki Niemi b412c1b3e7 Refactor voicecall driver 2010-01-11 10:51:01 +02:00
Aki Niemi e55e324a94 Refactor phonebook driver 2010-01-11 10:51:01 +02:00
Aki Niemi d277e0eb73 User new debug facility 2010-01-11 10:51:01 +02:00
Aki Niemi 5f87037cc3 Include renamed files 2010-01-11 10:51:00 +02:00
Aki Niemi 0bc615eead Remove contact from boilerplate 2010-01-11 10:51:00 +02:00
Aki Niemi d0b3e3b211 Add debug implementation
Alsoo remove call specific debugs.
2010-01-11 10:51:00 +02:00
Aki Niemi c03cdaed9a Split ISI codepoints to separate files
Also, adding infrastructure for debugging ISI messages, with APIs for
turning most common fields into human readable string format.
2010-01-11 10:51:00 +02:00
Aki Niemi 06afe598f5 Split isi.h into isimodem.h and isiutil.h 2010-01-11 10:51:00 +02:00
Luiz Augusto Von Dentz a6fc21fd1f Fix regression when removing watches
filter_data_find return the first data registered in this case so there is
no guarantee that it return the same data as passed to
filter_data_remove_callback which is the one that should be removed.

The fix is to simple cache the connection removing the correct data before
checking if there is any filter left.
2010-01-08 04:24:09 -08:00
Denis Kenzior 20db731484 Make primary context ids persistent 2010-01-07 14:43:21 -06:00
Denis Kenzior 230bddf30e Fix: Be paranoid and check that last is in range 2010-01-07 14:42:46 -06:00
Denis Kenzior bdfa90bd14 Add idmap_take utility 2010-01-07 14:42:29 -06:00
Denis Kenzior c4e89c46c8 Fix: Update unit test to the new return semantics 2010-01-07 14:41:18 -06:00
Denis Kenzior bf209425e5 Use idmap to allocate primary context ids 2010-01-07 14:07:52 -06:00
Denis Kenzior 4e621f3ad3 Change the semantics to return id > max on failure 2010-01-07 14:06:45 -06:00
Denis Kenzior 0ed5c70010 Fix: Fail if no driver or id range set 2010-01-07 13:25:32 -06:00
Denis Kenzior cdfe6dd342 Use the new from_range idmap constructor 2010-01-07 13:25:10 -06:00
Denis Kenzior af007cde66 Add idmap_from_range constructor 2010-01-07 13:20:48 -06:00