diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-03-14 18:25:35 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-03-14 18:25:35 +0000 |
commit | 93048c3a1a3f8a86d8f5be1bd3409f77e9802d6e (patch) | |
tree | d856e19ee389b1573672521e1c4d412141ead65b /src/hci.c | |
parent | 1ba3b0978c73153513cfe016435e1e930038fbd4 (diff) |
Fix broken behavior with EVT_CMD_STATUS
Diffstat (limited to 'src/hci.c')
-rw-r--r-- | src/hci.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -977,13 +977,13 @@ int hci_send_req(int dd, struct hci_request *r, int to) if (cs->opcode != opcode) continue; - if (cs->status) { - errno = EIO; - goto failed; - } - - if (r->event != EVT_CMD_STATUS) + if (r->event != EVT_CMD_STATUS) { + if (cs->status) { + errno = EIO; + goto failed; + } break; + } r->rlen = MIN(len, r->rlen); memcpy(r->rparam, ptr, r->rlen); |