Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291092
b: refs/heads/master
c: 5f15903
h: refs/heads/master
v: v3
  • Loading branch information
Johan Hedberg committed Mar 2, 2012
1 parent b06c192 commit 60571a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d4f68526e438dbb7d194b08499a96c733131ad72
refs/heads/master: 5f15903279143eb640f9ba1c0e72b52fe9e9e2a6
1 change: 1 addition & 0 deletions trunk/include/net/bluetooth/mgmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#define MGMT_STATUS_DISCONNECTED 0x0e
#define MGMT_STATUS_NOT_POWERED 0x0f
#define MGMT_STATUS_CANCELLED 0x10
#define MGMT_STATUS_INVALID_INDEX 0x11

struct mgmt_hdr {
__le16 opcode;
Expand Down
6 changes: 3 additions & 3 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2682,7 +2682,7 @@ int mgmt_control(struct sock *sk, struct msghdr *msg, size_t msglen)
hdev = hci_dev_get(index);
if (!hdev) {
err = cmd_status(sk, index, opcode,
MGMT_STATUS_INVALID_PARAMS);
MGMT_STATUS_INVALID_INDEX);
goto done;
}
}
Expand All @@ -2698,7 +2698,7 @@ int mgmt_control(struct sock *sk, struct msghdr *msg, size_t msglen)
if ((hdev && opcode < MGMT_OP_READ_INFO) ||
(!hdev && opcode >= MGMT_OP_READ_INFO)) {
err = cmd_status(sk, index, opcode,
MGMT_STATUS_INVALID_PARAMS);
MGMT_STATUS_INVALID_INDEX);
goto done;
}

Expand Down Expand Up @@ -2745,7 +2745,7 @@ int mgmt_index_added(struct hci_dev *hdev)

int mgmt_index_removed(struct hci_dev *hdev)
{
u8 status = MGMT_STATUS_INVALID_PARAMS;
u8 status = MGMT_STATUS_INVALID_INDEX;

mgmt_pending_foreach(0, hdev, cmd_status_rsp, &status);

Expand Down

0 comments on commit 60571a9

Please sign in to comment.