fix data type of the "response" field (https://dev.openwrt.org/ticket/14062)
authorFelix Fietkau <nbd@openwrt.org>
Tue, 20 Aug 2013 18:24:00 +0000 (20:24 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 20 Aug 2013 18:24:11 +0000 (20:24 +0200)
switch.c

index 9f1f3b4c3fbd7991b7b846cc7e63b2ac8fdd9049..763acfaecbfbf363b5b6ea61649f672413a41696 100644 (file)
--- a/switch.c
+++ b/switch.c
@@ -335,7 +335,7 @@ void handle_switch(struct usbdev_data *data)
                [DATA_INTERFACE] = { .name = "interface", .type = BLOBMSG_TYPE_INT32 },
                [DATA_MSG_EP] = { .name = "msg_endpoint", .type = BLOBMSG_TYPE_INT32 },
                [DATA_RES_EP] = { .name = "response_endpoint", .type = BLOBMSG_TYPE_INT32 },
-               [DATA_RESPONSE] = { .name = "response", .type = BLOBMSG_TYPE_INT32 },
+               [DATA_RESPONSE] = { .name = "response", .type = BLOBMSG_TYPE_BOOL },
                [DATA_CONFIG] = { .name = "config", .type = BLOBMSG_TYPE_INT32 },
                [DATA_ALT] = { .name = "alt", .type = BLOBMSG_TYPE_INT32 },
        };