summaryrefslogtreecommitdiffstats
path: root/src/stk.c
AgeCommit message (Collapse)AuthorFilesLines
2012-01-18stk: find_atom only returns registered atomsDenis Kenzior1-9/+4
This seems to be an oversight from an earlier refactoring.
2012-01-18stk: Use __ofono_atom_findDenis Kenzior1-73/+28
2011-10-10core: Update copyright informationMarcel Holtmann1-1/+1
2011-08-14stk: Fix crashesDenis Kenzior1-36/+13
2011-07-25stk: Fix missing break statementDenis Kenzior1-0/+1
2011-07-25stk: Make sure to set cancel_cmdDenis Kenzior1-17/+34
For handled commands, in case the terminal response is not reported by the modem, we must set the cancel_cmd variable so the command is canceled properly. This patch also modifies the behavior so that pending_cmd is freed, since stk_proactive_command_cancel expects cancel_cmd to be set if pending_cmd is not NULL.
2011-07-25stk: Remove code that does nothingDenis Kenzior1-3/+0
2011-07-25stk: Fix possible crashDenis Kenzior1-4/+4
We can't call stk_command_free on a NULL object
2011-07-25stk: Handle set up call in handled_notifyJeevaka Badrappan1-26/+140
2011-07-15stk: Fix crash seen in stk_alpha_id_unsetJeevaka Badrappan1-1/+6
If there is no default agent, then current agent also will be NULL. So, call stk_agent_request_cancel only when there is a valid current agent.
2011-07-06stk: Use the right command pointerAndrzej Zaborowski1-1/+1
2011-05-31stk: Cancel pending DTMF tones if session is endedDenis Kenzior1-13/+25
The Send DTMF command is special in its use of DisplayAction method of STK agent. This allows the user to send a 'User Terminated Session' response to the SIM. If the user performs this action, then any pending DTMFs should also be canceled as soon as possible.
2011-05-31stk: simplify respond_on_exit flag handlingPhilippe Nunes1-25/+2
respond_on_exit flag is set by commands which are dispatched to the agent, so that if the agent exits prematurely, a 'User Terminated Session' response is sent to the SIM. There were a couple of corner cases not quite handled correctly: - During Set Up Call, if the user confirmation phase succeeded and the call was dispatched to voicecall atom successfully, and the agent exited at this point, then no terminal response would be sent until the call succeeded / failed. Now the agent termination results in an 'User Terminated Session' response being sent immediately, but the call setup proceeding.
2011-04-05stk: No more need to use get_registeredDenis Kenzior1-3/+3
__ofono_modem_find_atom returns only atoms that are registered now.
2011-04-05stk: Check for USSD atom before othersDenis Kenzior1-6/+6
For efficiency (and consistency) we should check for the USSD atom before checking CallForwarding, CallBarring, and CallSettings atoms.
2011-04-05stk: Check if terminal is busy before SIM RefreshAndrzej Zaborowski1-23/+71
2011-03-30stk: Handle user termination for Send DTMFPhilippe Nunes1-5/+21
2011-03-23stk: Fix getenv failure caseJeevaka Badrappan1-3/+3
2011-03-16stk: fix issue with Get Inkey variable timeoutJeevaka Badrappan1-2/+26
2011-03-02stk: Handle Refresh if also performed by modemAndrzej Zaborowski1-6/+30
2011-02-28stk: Make sure to reset respond_on_exitAndrzej Zaborowski1-0/+1
This fixes a crash spotted by Lasse Kunnasluoto documented at http://lists.ofono.org/pipermail/ofono/2011-February/009211.html
2011-02-17stk: Partially handle Refresh commandAndrzej Zaborowski1-0/+65
Only the four "NAA initialisation" modes are handled at the moment.
2011-02-02stk: Fix style issuesAki Niemi1-4/+6
2011-01-26stk: Fix issue in stk_alpha_id_setJeevaka Badrappan1-1/+6
Fixes the crash seen with the null alpha identifier. Also removed the icon check since the decision of whether to inform the user of the action is dependent entirely on whether the alpha identifier is provided by the UICC.
2011-01-24stk: change timeout from 10 to 3mintuesJeevaka Badrappan1-1/+1
2011-01-20stk: Handle Launch Browser proactive commandJeevaka Badrappan1-0/+79
2011-01-12stk: make use of ADD_ERROR_RESULT macroJeevaka Badrappan1-39/+30
2011-01-12stk: add additional info for terminal busy resultJeevaka Badrappan1-8/+37
As per the ETSI TS 102 223 specification 8.12.2, it is mandatory to provide additional information for the general result "ME currently unable to process command".
2011-01-06stk: Remove unwanted error checkJeevaka Badrappan1-5/+0
Possible return values of __ofono_voicecall_tone_send are -ENOSYS, -ENOENT, -ENOMEM and -EINVAL.
2010-12-27stk: Remove unneeded assignmentDenis Kenzior1-3/+1
2010-12-27stk: fix issue in set up menu handlingJeevaka Badrappan1-13/+15
2010-12-23stk: Send the AlphaId's to agentAndrzej Zaborowski1-2/+7
Terminate session if return signature doesn't match but allow agent to return from the call if it does match.
2010-12-10stk: fix issue to avoid null pointer for alpha_idGuillaume Lucas1-7/+6
If a SET UP CALL proactive command with no alpha identifier occurs, the alpha_id pointer will be set to NULL. This will generate a crash in the stkagent with dbus function. To avoid this we use an empty string if the alpha identifier is not present in the command.
2010-12-10stk: No need to check for null textDenis Kenzior1-13/+8
For Set up idle mode text
2010-12-08stk: Handle provide local info proactive commandYang Gu1-0/+77
2010-11-30stk: Add busy error for the display text commandGuillaume Lucas1-0/+15
According to the sequence 1.2 of the ETSI TS 102 384 a busy screen error should be returns for the display text proactive command when the ME is not able to display the text.
2010-11-29core: explicitly compare pointers to NULLLucas De Marchi1-31/+31
This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // <smpl> @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // </smpl>
2010-11-25stk: use bigger timeout in DisplayTextAndrzej Zaborowski1-0/+3
When the wait for user confirmation bit is set.
2010-11-23stk: Minor style fixDenis Kenzior1-1/+1
2010-11-23stk: Handle null Text fieldAndrzej Zaborowski1-0/+3
Add a NULL check in dbus_apply_text_attributes because in some places (like DisplayText handler) we call it without checking and we just check the return value once.
2010-11-22src: coding style fixes - rule M6Jeevaka Badrappan1-2/+2
2010-11-08stk: API for SMS Point-to-Point download to UICCAndrzej Zaborowski1-0/+39
The callback returns the TP-User-Data element content of the RP-ACK or RP-ERROR message, returned by the UICC.
2010-11-04sms: Refactor __ofono_sms_txq_submitDenis Kenzior1-3/+4
2010-10-28stk: Handle Send SS in handled_notifyDenis Kenzior1-0/+5
2010-10-27stk: Remove ofono_stk_terminal_response_sent_notifyDenis Kenzior1-7/+11
Not needed for now. We can always put this back in later if need be.
2010-10-27stk: Handle more commands in handled_notifyAndrzej Zaborowski1-0/+27
2010-10-25stk: Default to general beep if no tone is providedDenis Kenzior1-1/+1
According to section 6.6.5 of 102.223
2010-10-25stk: Handle the Play Tone proactive command.Andrzej Zaborowski1-0/+131
2010-10-25stk: Add duration_to_msecs to reduce duplication.Andrzej Zaborowski1-35/+26
2010-10-22stk: Nitpick some newline issuesDenis Kenzior1-4/+5