evdi: WA - support mobile profile (emuld connection)
authorJinhyung Choi <jinhyung2.choi@samsung.com>
Mon, 9 Feb 2015 06:24:48 +0000 (15:24 +0900)
committerJinhyung Choi <jinhyung2.choi@samsung.com>
Mon, 9 Feb 2015 06:24:48 +0000 (15:24 +0900)
Change-Id: I2454471e9b70d35fdb2b200fd35b6669a23a7f64
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
drivers/maru/maru_virtio_evdi.c

index dd65316..4b09071 100644 (file)
@@ -201,6 +201,8 @@ static void send_guest_connected_msg(bool connected)
        int err;
        struct msg_info* _msg;
        char connect = (char)connected;
+       char temp = 1;
+
        if (vevdi == NULL) {
                LOGERR("invalid evdi handle\n");
                return;
@@ -211,6 +213,7 @@ static void send_guest_connected_msg(bool connected)
        memset(_msg, 0, sizeof(vevdi->send_msginfo));
 
        memcpy(_msg->buf, GUEST_CONNECTION_CATEGORY, 7);
+       memcpy(_msg->buf + ID_SIZE + 2, &temp, 1);
        memcpy(_msg->buf + ID_SIZE + 3, &connect, 1);
        _msg->route = route_control_server;
        _msg->use = ID_SIZE + HEADER_SIZE;
@@ -257,7 +260,7 @@ static int evdi_open(struct inode* inode, struct file* filp)
 
        evdi_info->guest_connected = true;
 
-       //send_guest_connected_msg(true);
+       send_guest_connected_msg(true);
 
        ret = _make_buf_and_kick();
        if (ret < 0)