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

diff --git a/src/stk.c b/src/stk.c
index cbbab4a..64ef91a 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -2827,6 +2827,16 @@ static gboolean handle_command_open_channel(const struct 
stk_command *cmd,
        return FALSE;
 }
 
+static gboolean handle_command_get_channel_status(const struct stk_command 
*cmd,
+                                               struct stk_response *rsp,
+                                               struct ofono_stk *stk)
+{
+       rsp->result.type = STK_RESULT_TYPE_SUCCESS;
+       rsp->channel_status.channel.id = stk->bip.channel.id;
+       rsp->channel_status.channel.status = stk->bip.channel.status;
+       return TRUE;
+}
+
 static void stk_proactive_command_cancel(struct ofono_stk *stk)
 {
        if (stk->immediate_response)
@@ -3025,6 +3035,11 @@ void ofono_stk_proactive_command_notify(struct ofono_stk 
*stk,
                                                        &rsp, stk);
                break;
 
+       case STK_COMMAND_TYPE_GET_CHANNEL_STATUS:
+               respond = handle_command_get_channel_status(stk->pending_cmd,
+                                                       &rsp, stk);
+               break;
+
        default:
                rsp.result.type = STK_RESULT_TYPE_COMMAND_NOT_UNDERSTOOD;
                break;
-- 
1.7.1

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to