From be057fe138aef1f38d615e4751da078aa6ce36ed Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 1 Dec 2013 14:42:51 +0100 Subject: [PATCH] wireless: fix parsing of the immediate flag for kill-all Signed-off-by: Felix Fietkau --- wireless.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2