wireless: fix parsing of the immediate flag for kill-all
authorFelix Fietkau <nbd@openwrt.org>
Sun, 1 Dec 2013 13:42:51 +0000 (14:42 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 1 Dec 2013 13:42:51 +0000 (14:42 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
wireless.c

index 273d54bd93d510664ddfb2943c730b59a4368328..7d61a6108f5414c9c2e9549356bc83d8288a0946 100644 (file)
@@ -762,7 +762,7 @@ wireless_device_process_kill_all(struct wireless_device *wdev, struct blob_attr
                signal = blobmsg_get_u32(cur);
 
        if ((cur = tb[KILL_ATTR_IMMEDIATE]))
-               immediate = blobmsg_get_u32(cur);
+               immediate = blobmsg_get_bool(cur);
 
        if (wdev->state != IFS_TEARDOWN || wdev->kill_request)
                return UBUS_STATUS_PERMISSION_DENIED;