summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-12-01 14:42:51 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-12-01 14:42:51 +0100
commitbe057fe138aef1f38d615e4751da078aa6ce36ed (patch)
tree66bd94484f18f391e7f6c4927b217a2ec7d6e996
parent5c2cc14f85df74d971979b45265173f067f1e971 (diff)
wireless: fix parsing of the immediate flag for kill-all
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--wireless.c2
1 files changed, 1 insertions, 1 deletions
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;