Commit Graph

1438 Commits

Author SHA1 Message Date
Denis Kenzior 7e0f28c7b1 sms: Update SmsManager to MessageManager 2010-08-19 14:20:05 -05:00
Pekka Pessi 4cd9a52f4c fix: Remove extra comma from NotAvailable error 2010-08-19 19:30:27 +02:00
Marcel Holtmann 89e5a75fc1 netreg: Make reset_available returning void 2010-08-19 10:06:17 +02:00
Denis Kenzior 60e091f16f netreg: Minor style issues 2010-08-18 21:13:14 -05:00
Denis Kenzior 999a754ef7 netreg: Move more stuff around 2010-08-18 21:09:03 -05:00
Denis Kenzior 89f37c9010 netreg: Move stuff around to avoid forward decl 2010-08-18 21:07:50 -05:00
Denis Kenzior 53c5c9b0e2 netreg: Make logic more readable 2010-08-18 21:03:04 -05:00
Denis Kenzior 06f56000ff gprs: Update Attached when Auto-Attached succeded 2010-08-18 20:56:00 -05:00
Denis Kenzior 84bdd03683 netreg: Move code around to avoid forward decl 2010-08-18 17:53:04 -05:00
Denis Kenzior b67a324ff4 netreg: Update to the new Scan/GetOperators API 2010-08-18 17:46:51 -05:00
Andrzej Zaborowski c8c8116db4 stk: Update agent_called with GetInkey & GetInput 2010-08-18 00:27:38 -05:00
Andrzej Zaborowski 5b30157514 stkagent: Free pending call when destroying agent
Otherwise we leak memory and additionally D-bus invokes the method
callback and since the agent is already destroyed, we segfault.
2010-08-18 00:27:08 -05:00
Denis Kenzior e38064a66d smsutil: Get rid of pointless member 2010-08-17 12:36:26 -05:00
Denis Kenzior e428bfc3be smsutil: Simple whitespace fix 2010-08-17 12:10:27 -05:00
Denis Kenzior cc67a29551 ussd: Be extra pedantic trying to Cancel
If we initiated a Respond() transaction, but have not returned from the
callback.  Or if we already called Cancel and it hasn't returned yet.
2010-08-16 11:02:05 -05:00
Denis Kenzior 0699de64eb ussd: Properly handle cancellations 2010-08-16 10:41:35 -05:00
Denis Kenzior f86bc5ebde dbus: Add Canceled error 2010-08-16 10:41:35 -05:00
Denis Kenzior d6f81ef17a gprs: Fix up some attach/detach logic issues
Parts of it are related to Meego bug 5193, namely that we don't properly
signal the Attached status when powering down.

Another part of the fix is that we automatically detach in case our
conditions are not fulfilled if the modem attaches automatically (e.g.
Auto-Attach is enabled)
2010-08-13 18:17:04 -05:00
Denis Kenzior bab23b3976 voicecall: Make hangup_all work for 911 calls 2010-08-13 14:00:43 -05:00
Denis Kenzior c7b13ec2fe voicecall: Relax restriction for hangup_active
If hangup_active is present, then a single active call in a 3-way
situation is hung up using hangup_active.
2010-08-12 13:15:52 -05:00
Denis Kenzior fa2c29c84f voicecall: Move some stuff around 2010-08-12 13:13:53 -05:00
Denis Kenzior 2c9a2b8a99 voicecall: Don't hangup waiting calls
During hangup_all operation.  For multiparty hangups, waiting calls are
not part of the mpty call.
2010-08-12 11:32:12 -05:00
Denis Kenzior dcf1c32f4c voicecall: Make logic bit cleaner 2010-08-12 11:32:12 -05:00
Denis Kenzior 516d1545a1 voicecall: Minor style issues 2010-08-12 11:32:12 -05:00
Denis Kenzior 10e9bdf4c1 voicecall: Reflow the logic of voicecall_hangup 2010-08-12 11:32:12 -05:00
Sjur Brændeland 9a24ece0fb voicecall: Add support for function hangup_all
This patch fixes problem for modems that cannot terminate
DIALING/ALERTING calls with CHUP=1X. The main change is that
voicecall driver's hangup function is split into the functions
hangup_all and hangup_active.

Changes:
- In cases where hangup previously was used, hangup_all is used
  if implemented otherwise hangup_active is used.
- Call in state DIALING/ALERTING is released with hangup_active if
  implemented.
- manager_hangup_all will simply call hangup_all if implemented.
- manager_hangup_all will release calls in state
  ALERTING/DIALING/INCOMING using hangup_active otherwise
  release_specific.
2010-08-12 11:32:12 -05:00
Marcel Holtmann 5dc131c8ea Add a few debug statements to STK core 2010-08-11 14:18:13 -04:00
Marcel Holtmann fea1d430ed Add SimToolkitAgent interface to D-Bus configuration 2010-08-10 21:38:16 -04:00
Zhenhua Zhang 6556eda51c gprs: Fix release cid in gprs_deactive_for_remove
Similiar to pri_deactive_callback, we should release the context id in
gprs_deactive_for_remove() as well.
2010-08-09 09:07:30 -05:00
Inaky Perez-Gonzalez 8f570a7969 sms: struct tx_queue_entry: add a destructor
Introduce a destructor function to encapsulate all the release steps
for this data type, as more are to be added later.
2010-08-05 11:59:34 -05:00
Inaky Perez-Gonzalez ed8ef7a1e8 storage: make write_file transaction-safe
write_file(), as written wasn't transaction-safe; a crash bewtween a
file being open and the buffer being written before a safe close would
leave the file with a set of undetermined contents.

Modified to the file is written to a temporary file name; once
completed, it is renamed to the final name. This way, a crash in the
middle doesn't leave half-baked files.
2010-08-05 11:59:22 -05:00
Denis Kenzior 8eb9425f32 sim: Use less space for locked_pins
Use only as required, since we only track PINs in this one, not PUKs
2010-08-05 10:19:04 -05:00
Denis Kenzior 764afde1fe sim: Fix LockedPins in case SIM wants a PUK first
In the case that oFono is started with the SIM asking for a PUK, we
don't report LockedPins properly.
2010-08-05 10:00:57 -05:00
Denis Kenzior 5a6151a363 stkagent: No need to split these on two lines 2010-08-04 14:49:42 -05:00
Denis Kenzior 9b284c7c35 stk: Rip out the HELP stuff for now
We're not supporting it in the current API and doing so is actually
very painful.
2010-08-04 14:47:38 -05:00
Denis Kenzior 7241a0e314 stkagent: Introduce CALLBACK_END macro 2010-08-04 14:40:08 -05:00
Andrzej Zaborowski c09dfb8473 stk: Handle the Get Input proactive command 2010-08-04 14:29:24 -05:00
Andrzej Zaborowski e620d7d99e stkagent: Implement RequestInput/RequestDigits 2010-08-04 14:28:21 -05:00
Andrzej Zaborowski ed169aa02f stk: Handle the Get Inkey proactive command 2010-08-04 14:13:16 -05:00
Andrzej Zaborowski 939fc1273c stkagent: Implement RequestConfirmation/Key/Digit 2010-08-04 14:13:06 -05:00
Denis Kenzior b952c34c38 stkagent: Remove stk_agent_busy 2010-07-30 18:59:44 -05:00
Denis Kenzior 8697cbbba8 stk: Remove unneeded check
The agent_remove_source will be canceled as part of the session agent
destruction notify.
2010-07-30 18:50:38 -05:00
Denis Kenzior 41017a11f5 stk: Fix typo in comment 2010-07-30 18:34:49 -05:00
Denis Kenzior e2d6d56374 stk: Handle the case where no agent is registered 2010-07-30 18:17:57 -05:00
Denis Kenzior c2cf374857 stk: Get rid of cancel result
And also rework how immediate response display text gets handled.
2010-07-30 17:19:56 -05:00
Denis Kenzior cf249c9fd7 stk: Introduce destroy semantics to stkagent 2010-07-30 17:19:56 -05:00
Denis Kenzior 27e890cc40 stk: Handle errors when sending to the agent fails 2010-07-30 17:19:56 -05:00
Denis Kenzior 2a1eee38bb stk: Get rid of nested switch 2010-07-30 17:19:56 -05:00
Denis Kenzior e5ea6e2193 stk: Handle the new termination semantics
The termination semantics were changed in stkagent.  Now if an agent
sends an invalid response or an unexpected error, then the agent is
terminated, even if it is the default agent.
2010-07-30 17:19:56 -05:00
Denis Kenzior e44d130b8c stk: Simplify sending of terminal responses
Introduce a new send_simple_response function
2010-07-30 17:19:56 -05:00
Denis Kenzior 3434540d8b stkagent: Make DisplayText invocation match API
For now we match the proposed API until we decide that changes are
needed.
2010-07-30 17:19:56 -05:00
Denis Kenzior 69ea6cd7a0 stkagent: Remove stk_agent_generic_cb 2010-07-30 17:19:56 -05:00
Denis Kenzior 0292fe12c0 stkagent: Get rid of nasty g_timeout tricks 2010-07-30 17:19:55 -05:00
Denis Kenzior 9684c4a362 stkagent: Get rid of unneeded checks 2010-07-30 17:19:55 -05:00
Denis Kenzior aa650f7488 stkagent: Shorten logic 2010-07-30 17:19:55 -05:00
Denis Kenzior 1a7179b79d stkagent: Simplify stkagent logic 2010-07-30 17:19:55 -05:00
Denis Kenzior 7ad5b35a35 stkagent: Refactor stkagent api 2010-07-30 17:19:55 -05:00
Denis Kenzior dc5a2609b3 stkagent: Rename stk_agent_remove
to stk_agent_free
2010-07-30 17:19:55 -05:00
Denis Kenzior 9e00eebe73 stkagent: Reorder stkagent.h 2010-07-30 17:19:55 -05:00
Andrzej Zaborowski b051f28dbe stk: Handle the Display Text proactive command. 2010-07-30 17:19:55 -05:00
Andrzej Zaborowski 3714eb8acd stk: Handle the Select Item proactive command. 2010-07-30 17:19:55 -05:00
Andrzej Zaborowski 47b95122cc stk: Handle the main menu. 2010-07-30 17:19:55 -05:00
Andrzej Zaborowski 5faa3951c2 stk: Utilities to deal with menus. 2010-07-30 17:19:55 -05:00
Andrzej Zaborowski 9654c69d7d stk: Add STK agent registration api. 2010-07-30 17:19:54 -05:00
Andrzej Zaborowski 573c806fcd Add STK agent utilities and logic. 2010-07-30 17:19:54 -05:00
Denis Kenzior cf86deeb82 netreg: Add MCC/MNC to NetworkRegistration
These are the same values as on the NetworkOperator interface for the
current operator.  Just added for convenience.
2010-07-27 16:52:16 -05:00
Kristen Carlson Accardi f9cb5b37dd stkutil: convert img to xpm 2010-07-26 14:34:54 -05:00
Inaky Perez-Gonzalez e31d429dbe sms: rename create_tx_queue_entry()
This is for symmetry with tx_queue_entry_free()
2010-07-23 18:00:59 -05:00
Inaky Perez-Gonzalez 4421b5b912 sms: document use_delivery_reports
In function sms_text_prepare
2010-07-23 18:00:10 -05:00
Inaky Perez-Gonzalez 9517bf2991 sms: sms_assembly_encode_address export and rename
The new name better reflects the function's purpose.

We need to export it, as for generating unique message naming (for
persistence and D-Bus object naming), we'll be using the
address.
2010-07-23 17:28:18 -05:00
Inaky Perez-Gonzalez ca46f51c2d introduce DECLARE_SMS_ADDR_STR()
Introduce DECLARE_SMS_ADDR_STR(), which declares a string variable of
the right size for passing to sms_assembly_decode_address(). This way
we detach each client having to have the knowledge of what the right
size is, leaving that decission to the infrastructure
provider. Updated couple of sites in smsutil.c to use it vs a raw
declaration.
2010-07-23 17:26:12 -05:00
Zhenhua Zhang bdef5046d0 Fix: Free modem name in ofono_modem_remove
Avoid the memory leak of modem name.
2010-07-21 11:58:35 -05:00
Denis Kenzior a3b694672d gprs: Minor style fixes 2010-07-19 13:51:00 -05:00
Denis Kenzior d4cae8dd56 gprs: Add Protocol property with IPv6/IPv4 2010-07-19 13:50:37 -05:00
Marcel Holtmann 7f9793d70b Add feature identifier for SIM Toolkit 2010-07-17 14:53:07 -07:00
Andrzej Zaborowski 7c6758af20 stk: Remove an unneeded check. 2010-07-15 15:41:54 -05:00
Denis Kenzior e77ea33fd6 stkutil: Set black fore/back ground color 2010-07-13 15:36:00 -05:00
Kristen Carlson Accardi d10deb44f8 stkutil: display text attributes as html 2010-07-13 14:59:21 -05:00
Yang Gu 058d3d0cd4 Interpret "" Alpha Id as empty data object
There needs to be a way to distinguish between no alphaid and "empty
data object" because on some occasions they have different meanings.  In
the Call Control envelope, no Alpha Identifier means the terminal can
inform the user about the call being modified by SIM while empty data
object means no hint should be given.
2010-07-09 12:30:12 -05:00
Denis Kenzior 465a4f5ef5 stk: Simplify poll interval logic 2010-07-08 14:27:35 -05:00
Denis Kenzior 7d98e604c7 stk: Be more paranoid of enums from stk 2010-07-08 14:27:35 -05:00
Andrzej Zaborowski 45d535b802 stk: Handle the Poll Interval proactive command 2010-07-08 14:27:35 -05:00
Denis Kenzior 00cb839c83 style: Use more understandable syntax 2010-07-08 14:27:34 -05:00
Denis Kenzior ab9d7cd2cb style: No initialization needed here 2010-07-08 14:27:34 -05:00
Denis Kenzior ea1f6e11f6 stk: Get rid of gratuitous goto abuse 2010-07-08 14:27:34 -05:00
Denis Kenzior 5094b677ca style: Prefer initialized variables on top 2010-07-08 14:27:34 -05:00
Denis Kenzior 84e73a8b7c sms: Refactor ofono_sms_submit introduced by stk
Simplify the logic and get rid of duplicated code
2010-07-08 14:27:34 -05:00
Denis Kenzior 6d91d84b28 sms: Tweak the logic to be more readable 2010-07-08 14:27:34 -05:00
Denis Kenzior db9b67e791 stk: Don't submit all pending envelopes at once 2010-07-08 14:27:34 -05:00
Denis Kenzior 5efd87fe63 stk: Fix copy / paste error 2010-07-08 14:27:34 -05:00
Denis Kenzior a6edf2c803 stk: Get rid of bin to hex converter
That much code for a debug message is pretty silly.  Perhaps an
ofono_debug_hexdump function is in order.
2010-07-08 14:27:34 -05:00
Denis Kenzior d2dc0480db stk: cancelled variable is not used 2010-07-08 14:27:34 -05:00
Andrzej Zaborowski bd33ab6a6f stk: Handle the Timer Management proactive command 2010-07-08 14:27:34 -05:00
Andrzej Zaborowski c0db55513d stk: Handle the Set Up Idle Text proactive command
This adds a SimToolkit dbus interface with just one property
(IdleModeText).
2010-07-08 14:27:34 -05:00
Andrzej Zaborowski 56d927b814 stk: Handle the Send SMS proactive command. 2010-07-08 14:27:34 -05:00
Andrzej Zaborowski 516a9b06c5 Add __ofono_sms_submit for other atoms to submit SMs. 2010-07-08 14:27:33 -05:00
Andrzej Zaborowski 6de5b7f5bb stkutil: Timer Value is conditional, not optional.
Make the parser check that the value is present when necessary,
so that stk.c doesn't have to check this.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski c451994139 sktutil: Use the Mandatory flag in parse_dataobj.
We need to look at the Mandatory flag and not at the Minimum flag
when parsing CTLVs.  The Minimum flag is important when encoding CTLVs
because CR bit is set according to it.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski de587870d2 stk: Handle ENVELOPEs in a queue, retry on sim busy.
Some envelope types need to be retried when sim reports busy status.
Then envelopes such as Event Download need to be returned in the
order of the event occurences, so need to be handled in a queue.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski 9d46dbc7a5 stk: Handle MoreTime command as a no-op 2010-07-08 14:27:33 -05:00
Andrzej Zaborowski cbdb7278ac stk: Utilities for proactive command/envelope handling. 2010-07-08 14:27:33 -05:00
Denis Kenzior e6d6f802a5 smsutil: Fix valgrind complaint
SMS cannot be split over GSM extension chars, however on the last
segment this code was causing us to overflow the buffer and resulted in
valgrind complaining.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski 365183d5a0 stkutil: Move scaddr field to gsm_sms 2010-07-02 14:13:45 -05:00
Denis Kenzior 20da18ca8b sms: Tweak the Bearer API 2010-06-25 17:49:36 -05:00
Denis Kenzior 8ff599c691 sms: Add support for SMS Bearer settings 2010-06-25 14:25:46 -05:00
Denis Kenzior f3e0e466c7 gprs: Fix to attachment race condition
Sometimes we get unsolicited attachment status before our query
finishes.  If the client is fast enough they can attempt to attach
and get the AttachInProgress error
2010-06-25 14:19:08 -05:00
Denis Kenzior 17de318c76 sms: minor style fix 2010-06-24 14:24:00 -05:00
Denis Kenzior 10e3ca440b sms: Don't bother setting SCA if we can't query 2010-06-24 14:13:04 -05:00
Andrzej Zaborowski 557f4cdb16 stkutil: Alpha Id is optional for Select Item. 2010-06-23 14:45:46 -05:00
Andrzej Zaborowski ab7f88233d stkutil: Refactor command parser error handling
When parsing the full command fails but Command Details has been parsed,
return a struct stk_command containing this information and the type of
parsing problem found.  We need the command details to be able to
even respond to the command.

This patch also makes the parser skip over unknown data objects found
in the BER-TLV, if they don't have Comprehension Required set.
2010-06-23 14:23:06 -05:00
Marcel Holtmann 1fedd096a0 Check sanity the MNC length value from the SIM card
In case the SIM entry is wrong or we force reading of it, nasty things
like this can happen:

ofonod[12456]: Control:> AT+CRSM=176,28589,0,0,4\r
ofonod[12456]: Control:< +CRSM: 144,0,"00FFFF"\r\n\r\nOK\r\n
*** buffer overflow detected ***: ./src/ofonod terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x3e42efb417]
/lib64/libc.so.6[0x3e42ef9310]
/lib64/libc.so.6(__strncpy_chk+0x17b)[0x3e42ef85cb]
2010-06-22 17:21:03 +02:00
Denis Kenzior 9b6876ef25 storage: whitespace issue 2010-06-21 15:40:14 -05:00
Denis Kenzior 6bae7a2aa1 smsutil: Fix up some comment style 2010-06-21 15:33:13 -05:00
Andrzej Zaborowski b8f68a5ed3 stkutil: Remove obsolete comment. 2010-06-21 15:21:40 -05:00
Denis Kenzior 4d82b67ea1 sms: Only emit property if value actually differs 2010-06-21 15:21:40 -05:00
Denis Kenzior 5aa8841440 smsutil: Take ton_npi into account in sr assembly 2010-06-21 15:21:40 -05:00
Denis Kenzior 36bcae5ff1 smsutil: More code cleanup
- Change the flow of the code a bit, in the case that all fragments have
  been sent and an udelivered sr arrives, we can simply remove the node
  and signal undelivered up
- We ignore temporary and temporary final status reports
2010-06-21 15:21:40 -05:00
Denis Kenzior cbc27e06b3 smsutil: Make code flow easier to understand 2010-06-21 15:21:40 -05:00
Denis Kenzior a8bd87cda9 smsutil: multiline comments to preferred style 2010-06-21 15:21:40 -05:00
Denis Kenzior 65b8cab616 smsutil: Minor code style & indentation fixes 2010-06-21 15:21:39 -05:00
Denis Kenzior 74a8ce2e8b sms: Fixup minor style issues with status reports 2010-06-21 15:21:39 -05:00
Pasi Miettinen 84d095860f sms: Status report notify 2010-06-21 15:21:39 -05:00
Denis Kenzior d7dacd2fad smsutil: memcpy is preferable to struct assignment 2010-06-21 15:21:39 -05:00
Denis Kenzior c967766070 smsutil: Streamline flow of sr add_fragment 2010-06-21 15:21:39 -05:00
Denis Kenzior cf62a6e8d5 Fix: Make distcheck pass
No need to include history.h anyway
2010-06-21 15:21:39 -05:00
Pasi Miettinen a7372209f3 smsutil: Status report assembly 2010-06-21 10:52:27 -05:00
Andrzej Zaborowski 1b4dd4cd83 stkutil: Add More Time terminal response builder 2010-06-18 14:04:54 -05:00
Denis Kenzior 3b5d3fe1ef stkutil: USSD max len is 160 2010-06-18 13:59:15 -05:00
Yang Gu 6018d1fe82 stk: Add parser for timing advance objects 2010-06-18 13:57:55 -05:00
Yang Gu 179c14fe39 smsutil: Add a decoder for ussd pdus 2010-06-18 13:18:12 -05:00
Yang Gu 31d29608e0 stk: Add parser for send ussd commands 2010-06-18 13:15:31 -05:00
Denis Kenzior 97e62dffde stkutil: Make sure bc_repeat is used properly
The wrong structure was being used in the function & the has_bc_repeat
variable was not being set properly.
2010-06-16 17:43:12 -05:00
Denis Kenzior dc505be373 stkutil: Merge two versions of bcch_channel_list 2010-06-16 17:43:12 -05:00
Yang Gu ea41f3851d stk: Add parser for UTRAN meas qualifier objects 2010-06-16 17:43:12 -05:00
Yang Gu 521156c049 stk: Add parser for PDP activation param objects 2010-06-16 17:43:12 -05:00
Yang Gu 37afdf1ca5 stk: Add parser for bcch channel list objects 2010-06-16 17:43:11 -05:00
Yang Gu db941ff556 stk: Add parser for cell broadcast page objects 2010-06-16 17:43:11 -05:00
Yang Gu 090c93fbdf Add several proactive command parsers 2010-06-16 17:43:11 -05:00
Yang Gu a2d7494e93 stk: Add parser for send ss commands 2010-06-16 17:43:11 -05:00
Marcel Holtmann fd3a89091c Fix previous commit that broke reference to PDU string buffer 2010-06-16 16:49:14 +02:00
Marcel Holtmann e2790ba646 Fix memory allocation handling for STK Proactive command debug 2010-06-16 15:55:53 +02:00
Denis Kenzior 3ba288c396 stkutil: Minor style cleanups in stkutil 2010-06-15 14:32:58 -05:00
Andrzej Zaborowski d5ad48c661 stkutil: Add Terminal Applications envelope builder
This is not a terribly useful function as the user still needs to
split the list in separate envelopes.  The .type field could be an
enum.
2010-06-15 14:27:35 -05:00
Andrzej Zaborowski 0baaf2ce5b stkutil: Add MMS Notification DL envelope builder 2010-06-15 12:37:53 -05:00
Andrzej Zaborowski 6720f90e13 stkutil: Add MMS Transfer Status envelope builder 2010-06-15 12:36:31 -05:00
Andrzej Zaborowski df8f6115ca stkutil: Add the USSD Download envelope builder 2010-06-15 12:35:18 -05:00
Andrzej Zaborowski dd9e095524 stkutil: Add the Timer Expiration envelope builder 2010-06-15 12:09:00 -05:00
Andrzej Zaborowski 2166be0bc9 stkutil: Add the Event Download envelope builder 2010-06-15 12:06:59 -05:00
Andrzej Zaborowski fb39e0efed stkutil: Refactor struct stk_frames_info 2010-06-15 12:06:52 -05:00
Andrzej Zaborowski 6e4277eef8 stkutil: Refactor struct stk_other_address 2010-06-15 12:06:47 -05:00
Andrzej Zaborowski f74087d03e stkutil: Add the Call Control envelope builder 2010-06-15 12:06:30 -05:00
Marcel Holtmann 24124d193a Just call the feature "net" instead of "netreg" 2010-06-12 21:41:48 +02:00
Marcel Holtmann 236f3acc0f Add support for Features property on modem interface 2010-06-09 20:46:10 -07:00
Marcel Holtmann 9a72d2566d Move data connection manager interface constants into common include 2010-06-09 20:38:50 -07:00
Marcel Holtmann aa99c4c0dd Rename CbsManger into CellBroadcast
Other D-Bus interfaces use clear descriptions like SupplementaryServices
or NetworkRegistration. So use CellBroadcast for cell broadcast support.
2010-06-09 20:07:11 -07:00
Andrzej Zaborowski b95ef22f61 stkutil: Refactor stk_location_info
In some cases an empty stk_location_info means that no object should be
emitted (e.g. it is optional) and in other cases an empty object should
be emitted.  This is context specific to the terminal response /
envelope and thus we break this up into two separate functions.
2010-06-09 19:29:15 -05:00
Andrzej Zaborowski 5684577171 stkutil: Add MO SMS Control envelope builder 2010-06-09 18:03:00 -05:00
Denis Kenzior 70b09d1742 simutil: Remove unneeded forward-declaration 2010-06-09 13:08:23 -05:00
Andrzej Zaborowski 4dcb3fed2a simutil: Fix MMC MNC encoding for 2-digit MNCs. 2010-06-09 13:07:09 -05:00
Andrzej Zaborowski 9f925b3620 util: Add a "sim string" encoding utility. 2010-06-09 12:43:27 -05:00
Andrzej Zaborowski b2dfa2321f stkutil: Add the Menu Selection envelope builder 2010-06-09 12:30:19 -05:00
Andrzej Zaborowski 569c252e48 Fix: download CBS to SIM even when "Powered" is 0 2010-06-09 12:27:24 -05:00
Andrzej Zaborowski 7e5ef25c5a stk: Use envelope encoding utility from stkutil.c 2010-06-09 12:26:32 -05:00
Andrzej Zaborowski f989541161 stkutil: Add CBS-PP Data Download envelope builder 2010-06-09 12:25:25 -05:00
Andrzej Zaborowski 8be222d46e stkutil: Add SMS-PP Data Download envelope builder 2010-06-09 12:23:13 -05:00
Andrzej Zaborowski ef408ae1a6 stkutil: Use static buf in stk_pdu_from_response 2010-06-09 12:19:52 -05:00
Denis Kenzior 06ecf0e7f5 cbs: Send ETWS topics last 2010-06-07 15:08:58 -05:00
Denis Kenzior ba5ec3b38e sms: style fix, remove extra newline 2010-06-07 13:05:50 -05:00
Pasi Miettinen 47082757b9 sms: Add UseDeliveryReports property 2010-06-07 13:05:13 -05:00
Pasi Miettinen 475c0de92c smsutil: Add option to use delivery reports 2010-06-07 13:00:46 -05:00
Denis Kenzior c8f15602cf network: Some style issues 2010-06-07 12:57:50 -05:00
Denis Kenzior 3d96880f41 netreg: Ignore operator info when not registered
Sometimes when we roam off the cell or are simply not registered, the
modem still reports a bogus operator.  We explicitly ignore this
condition in the core.
2010-06-07 12:57:46 -05:00
Denis Kenzior 69e5a65d34 smsutil: status reports also lead with SC_ADDR 2010-06-04 14:21:57 -05:00
Yang Gu 52ddd8c283 stk: Constraint the appearance of empty item
If empty item turns out, it must be the only item in the list.
So the following situations are deemed as invalid:
1. Two empty items
2. Valid item + empty item
3. empty + valid item
2010-06-01 14:02:32 -05:00
Denis Kenzior 4638d3ad83 smsutil: Don't overflow signed ints
We were overflowing the datatype which was causing the 31st segments to
be prepended at position 0.  This resulted in (very) long messages being
improperly concatenated
2010-06-01 10:07:18 -05:00
Andrzej Zaborowski 4f2a371a9f stkutil: Add Launch Browser response builder 2010-05-28 11:41:34 -05:00
Andrzej Zaborowski ac222a5512 stkutil: Add Language Notification response builder 2010-05-28 11:38:19 -05:00
Andrzej Zaborowski 4c4e2e9f03 stkutil: Add Send DTMF response builder support 2010-05-28 11:37:39 -05:00
Denis Kenzior b1e3579417 stkutil: Fix comment style 2010-05-28 11:36:48 -05:00
Andrzej Zaborowski 27a9d785c4 stkutil: Add the Run AT Command response builder 2010-05-28 11:35:17 -05:00
Andrzej Zaborowski e608568d79 stkutil: Add Set Up Idle Mode Text response builder 2010-05-28 11:33:25 -05:00
Denis Kenzior 3dc3f69b86 stkutil: Fix style in build_dataobj_timer_value 2010-05-28 11:32:04 -05:00
Denis Kenzior 88e4f807f8 stkutil: Fix style 2010-05-28 11:30:35 -05:00
Andrzej Zaborowski 268ac562eb stkutil: Add the Timer Management response builder 2010-05-28 11:29:48 -05:00
Denis Kenzior 8d863b6250 stkutil: Use more understandable syntax 2010-05-28 11:29:35 -05:00
Denis Kenzior 5ed7962765 stkutil: Fix style 2010-05-28 11:29:35 -05:00
Denis Kenzior 5588433ad4 stkutil: Fix style in build_dataobj_location_info 2010-05-28 11:29:35 -05:00
Denis Kenzior a597318b78 stkutil: Fix some style issues with setup_call 2010-05-28 11:29:35 -05:00
Andrzej Zaborowski 139294c588 stkutil: Add Set Up Event List response builder 2010-05-28 11:29:35 -05:00
Andrzej Zaborowski 8868becca1 stkutil: Add the Provide Local Info response builder 2010-05-28 11:29:34 -05:00
Andrzej Zaborowski 970250be0c stkutil: Add Polling Off response builder support 2010-05-28 11:29:34 -05:00
Andrzej Zaborowski 8e0484d1d5 stkutil: Add Set Up Call response builder 2010-05-28 10:40:03 -05:00
Inaky Perez-Gonzalez 2b891029ac sms: Add some documentation
Add doc headers to ofono_sms_{create, register}
2010-05-28 09:45:56 -05:00
Inaky Perez-Gonzalez 8a4f8d2022 storage: add printf-like verification
Add __attribute__((format)) to {write, read}_file()
2010-05-28 09:44:15 -05:00
Inaky Perez-Gonzalez b0a63388de sms_send_message: add a short roadmap 2010-05-28 09:33:44 -05:00
Inaky Perez-Gonzalez 9c107821ab smsutils: add some documentation
sms_assembly_add_fragment_backup: clarify how insertion spot is found
2010-05-28 09:23:35 -05:00
Denis Kenzior f2f5810942 sim: move ServiceDiallingNumbers to ServiceNumbers
In line with the API documentation
2010-05-27 14:58:29 -05:00
Pekka Pessi 8001338da7 Use ofono_bool_t instead of bool in modem API. 2010-05-27 13:01:06 -05:00
Pekka Pessi 7d1c404a6a modem: Fix inconsistent state
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-27 12:44:40 -05:00
Denis Kenzior 603ff15e6b stkutil: Refactor parsing of data object lists
The old way wasn't working out for lists that are optional.  This was
only a problem with the launch browser proactive command.
2010-05-27 12:42:59 -05:00