Commit Graph

8869 Commits

Author SHA1 Message Date
Denis Kenzior 219a94a502 Only USSD needs the special <cr> handling
Apparently all Cell Broadcasts are always 88 bytes long, with a
6 byte header and 82 byte payload.  <cr> character is used as a
terminator and padding for the unused payload
2009-06-05 19:58:27 -05:00
Denis Kenzior 86f5712c27 Fixup header 2009-06-05 19:58:16 -05:00
Denis Kenzior ffb377d00d Reorder the header file a bit 2009-06-05 19:58:14 -05:00
Denis Kenzior bc6165ea8e Rename ud_len_in_octets to sms_udl_in_bytes 2009-06-05 19:58:11 -05:00
Denis Kenzior 5846688988 Rename sms utilities properly
Rename encode_sms to sms_encode
Rename decode_sms to sms_decode
2009-06-05 19:58:09 -05:00
Denis Kenzior 4f0c149162 Add SMS specific DCS decoding function 2009-06-05 19:58:06 -05:00
Denis Kenzior 41071737d0 Add utility to convert SCTS to local/remote time 2009-06-05 19:57:40 -05:00
Denis Kenzior b149dc166c Add proper handling for various messages
Handle Deliver / Status Report / Cell Broadcast messages and send the
appropriate acknowledgement PDUs (+CNMA) if required
2009-06-05 19:57:37 -05:00
Denis Kenzior f09683fc89 SMS-Command is also submitted with sc address 2009-06-05 19:57:03 -05:00
Denis Kenzior 973b33f47e Add colons to SMS prefixes 2009-06-05 19:57:01 -05:00
Denis Kenzior 3dcd15a4d8 Add SMS interface initialization code for atmodem 2009-06-03 21:08:47 -05:00
Denis Kenzior 6093b9b438 Add check for error path 2009-06-03 21:08:44 -05:00
Denis Kenzior 44bed555a5 Add check for error path 2009-06-03 21:08:41 -05:00
Denis Kenzior 7470393da7 Add UDH Iterator unit test 2009-06-03 21:08:39 -05:00
Denis Kenzior 0fbf2acb9d Break out VPF printing into separate function 2009-06-03 21:08:37 -05:00
Denis Kenzior 5e95802699 Add User-Data-Header iterator utilities 2009-06-03 21:08:35 -05:00
Denis Kenzior 356853983e Unit test for SMS-Submit encoding 2009-06-03 21:08:33 -05:00
Denis Kenzior 8a8dfced91 Calculation for UCS2 cases was wrong 2009-06-03 21:08:26 -05:00
Minjun Li e387488f02 Adding common unregister code in atmodem driver
Modem cleanup happens in two places: manager_free (ofono exit) and
manager_destroy (manually removing a specific modem).  Both need
to unregister the entire set of registered interfaces.

manager_destroy function did not unregister all interfaces.  Fixed
by adding a common function for both code paths.
2009-06-02 21:36:20 -05:00
Denis Kenzior 2271bca985 Squash another uninitialized warning
GCC detects that next_octet only sets oct if successful.  However,
we've already checked the length, so it should always succeed.
2009-06-01 14:05:50 -05:00
Denis Kenzior 05588ca59e Squash another uninitialized warning
GCC is smart enough to detect that oct is only set if the next_octet
function succeeds.  However, we've already checked that buf is big
enough, so it should always succeed.  Still, lets keep gcc happy
2009-06-01 14:05:48 -05:00
Denis Kenzior d0a569b9c0 Squish another uninitialized warning in CB 2009-06-01 14:05:45 -05:00
Denis Kenzior 7995258761 Squish another uninitialized warning 2009-06-01 14:05:43 -05:00
Denis Kenzior dc17c86a19 Change int type to enum for SS control callbacks 2009-06-01 14:05:41 -05:00
Denis Kenzior 8c75a0cdf1 Squash another uninitialized value warning 2009-06-01 14:05:39 -05:00
Denis Kenzior 373bf7e6bf Forgot this for SMS driver 2009-06-01 14:05:36 -05:00
Denis Kenzior 4f554c2cb7 Forgot to add this 2009-06-01 14:05:33 -05:00
Denis Kenzior e8421eea63 Add atmodem driver implementation for SMS 2009-05-29 18:37:44 -05:00
Denis Kenzior d6733e0746 Add basic skeleton for SmsManager interface 2009-05-29 18:37:41 -05:00
Denis Kenzior 5a4d750414 Do not use empty prefixes 2009-05-29 18:37:39 -05:00
Denis Kenzior 6fdc96cb73 Remove unnecessary define 2009-05-29 18:37:36 -05:00
Denis Kenzior 908670af5a Mention Minjun's contribution 2009-05-28 20:47:04 -05:00
Denis Kenzior bab9cd1f4c Remove unused function 2009-05-28 20:45:27 -05:00
Denis Kenzior a4a172d42d Remove unused function 2009-05-28 20:45:25 -05:00
Denis Kenzior 5bffbb8985 Free voicecalls when exiting 2009-05-28 20:45:23 -05:00
Denis Kenzior 99456167ab Don't emit the Operator changed if not registered
SPN Update emits the Operator property changed signal.  However,
this should not happen if there is no current operator
2009-05-28 20:37:24 -05:00
Denis Kenzior 02555a3a63 Add test script for NetworkRegistration interface 2009-05-28 18:29:07 -05:00
Denis Kenzior 7bd558c788 Fix a few style issues 2009-05-28 18:29:05 -05:00
Denis Kenzior b4d2d29d07 Fix signal emission when the operator changes
If the operator changes without going through a searching state the
Operator change signal was not properly emitted
2009-05-28 18:29:03 -05:00
Denis Kenzior d9d10f2292 Adding test script to test CallBarring SS strings 2009-05-28 18:29:01 -05:00
Denis Kenzior 703becb24d Add test script for CallBarring interface 2009-05-28 18:28:58 -05:00
Denis Kenzior 0c10adf557 Adding test script for CallMeter interface 2009-05-28 18:28:56 -05:00
Denis Kenzior 558799db9c Remove unused function 2009-05-28 18:28:54 -05:00
Denis Kenzior d200f537d3 Minor style tweak 2009-05-28 18:28:51 -05:00
Denis Kenzior 27349e877a Add Supplementary Services test for CallSettings 2009-05-28 18:28:48 -05:00
Denis Kenzior 7a7e1af833 Add simple test for CallSettings interface 2009-05-28 18:28:46 -05:00
Denis Kenzior 699752eaf1 Squash CallWaiting onto CallSettings interface
The CallWaiting interface had one settable attribute after the latest
set of refactoring.  Squash it onto the CallSettings interface where
it belonged in the first place
2009-05-28 18:28:40 -05:00
Denis Kenzior 99b01eba7f Simplify CallWaiting plugin interface
The use of a struct with status & cls seemed pointless when only
a single integer can work just as well.

Also the Fax & Data attributes have been squished.  oFono does
not yet support those call types.
2009-05-28 18:25:45 -05:00
Denis Kenzior 1b6369d188 Fix CallWaiting ss request to query bearers better 2009-05-28 18:25:41 -05:00
Denis Kenzior b7b890fdb2 Squash gcc warning about uninitialized use of v 2009-05-28 10:03:44 -05:00