[PATCH 03/14] stk: Handle the More Time proactive command as a nop.

Andrzej Zaborowski andrew.zaborowski at intel.com
Tue Jul 6 15:38:58 PDT 2010


---
 src/stk.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/stk.c b/src/stk.c
index 66b0a6b..ba66fe2 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -143,6 +143,15 @@ static void stk_command_cb(const struct ofono_error *error, void *data)
 	DBG("TERMINAL RESPONSE to a command reported no errors");
 }
 
+static gboolean handle_command_more_time(const struct stk_command *cmd,
+						struct stk_response *rsp,
+						struct ofono_stk *stk)
+{
+	/* Do nothing */
+
+	return TRUE;
+}
+
 static void stk_proactive_command_cancel(struct ofono_stk *stk)
 {
 	if (!stk->pending_cmd)
@@ -213,6 +222,10 @@ void ofono_stk_proactive_command_notify(struct ofono_stk *stk,
 			rsp.result.type =
 				STK_RESULT_TYPE_COMMAND_NOT_UNDERSTOOD;
 			break;
+		case STK_COMMAND_TYPE_MORE_TIME:
+			respond = handle_command_more_time(stk->pending_cmd,
+								&rsp, stk);
+			break;
 		}
 
 		if (respond)
-- 
1.7.1.86.g0e460.dirty



More information about the ofono mailing list