From: Felix Fietkau Date: Sun, 1 Dec 2013 13:42:51 +0000 (+0100) Subject: wireless: fix parsing of the immediate flag for kill-all X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=be057fe138aef1f38d615e4751da078aa6ce36ed;p=project%2Fnetifd.git wireless: fix parsing of the immediate flag for kill-all Signed-off-by: Felix Fietkau --- diff --git a/wireless.c b/wireless.c index 273d54b..7d61a61 100644 --- a/wireless.c +++ b/wireless.c @@ -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;