Commit Graph

1543 Commits

Author SHA1 Message Date
Zhenhua Zhang 7145edd3a4 Add gatutil.c to share common APIs with GAtServer
Add gatutil.c/h gat.h and move shared typedef and APIs into it.
So that they can be shared by GAtServer and GAtChat.
2010-01-20 14:13:57 -06:00
Denis Kenzior e829727224 Fix: Default to powered=true for CBS 2010-01-20 10:26:02 -06:00
Denis Kenzior 239c08299c Mention Jussi's contributions 2010-01-20 10:16:24 -06:00
Denis Kenzior 652825eb71 Style: Don't go over 80 characters per line 2010-01-20 10:14:01 -06:00
Jussi Kukkonen ebe8904f39 Add quirk for cid and lac handling for Huawei 2010-01-20 10:09:54 -06:00
Marcel Holtmann e433ddc100 Add command line option for printing version number 2010-01-16 19:29:43 -08:00
Denis Kenzior e8d18946b9 Fix: One more fix for disconnect detection
In situations where lots of data is generated by the remote side (e.g.
phonebook is being read) we can get our ring buffer filled up.  In this
case setting rbytes to zero first and then breaking out of the loop
leads to an erroneous disconnect detection.  The fix is to move setting
of rbytes after we know we still have some space.
2010-01-15 10:24:01 -06:00
Denis Kenzior aec5b8a44f Fix: Make remote disconnect detection work 2010-01-14 10:26:12 -06:00
Aki Niemi 8fe8220b23 Refactor phonebook driver 2010-01-14 10:33:48 +02:00
Aki Niemi 65ce05d37a Refactor supplementary service drivers 2010-01-14 10:33:48 +02:00
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