diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-07 09:41:40 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-07 09:41:40 +0300 |
commit | c03184efcba31643349c734fbd4b6442782e10b3 (patch) | |
tree | 326169e3d8068fbf10ec56a47a3c8e462d1cf0d6 | |
parent | 7dc92fb8079a01037faab71ecc90fe2fb6221d58 (diff) | |
download | bluez-c03184efcba31643349c734fbd4b6442782e10b3.tar.gz |
mgmtops: Fix handling of cmd_status(0)
-rw-r--r-- | plugins/mgmtops.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c index cedfbd4b4..a196b1fe7 100644 --- a/plugins/mgmtops.c +++ b/plugins/mgmtops.c @@ -1446,6 +1446,12 @@ static void mgmt_cmd_status(int sk, uint16_t index, void *buf, size_t len) opcode = btohs(bt_get_unaligned(&ev->opcode)); + if (!ev->status) { + DBG("%s (0x%04x) cmd_status %u", mgmt_opstr(opcode), opcode, + ev->status); + return; + } + error("hci%u: %s (0x%04x) failed: %s (0x%02x)", index, mgmt_opstr(opcode), opcode, mgmt_errstr(ev->status), ev->status); |