stk: simplify respond_on_exit flag handling
authorPhilippe Nunes <philippe.nunes@linux.intel.com>
Fri, 20 May 2011 16:26:14 +0000 (18:26 +0200)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 31 May 2011 23:43:04 +0000 (18:43 -0500)
commit4c2d8976142f52013b8edb1777a65b674d6d25b7
tree1153ca333daeb3f075b00832e5f209efa34aabe9
parent9909fe981d6da8e273540a4c98f8996b3030b2f1
stk: simplify respond_on_exit flag handling

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.
src/stk.c