Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291004
b: refs/heads/master
c: 5400c04
h: refs/heads/master
v: v3
  • Loading branch information
Johan Hedberg committed Feb 21, 2012
1 parent d45275f commit 2b7a15b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b5235a65ad19f47c5995f054d3dcce90570d1a1c
refs/heads/master: 5400c044f3fac38f521362d76711e4c170f78b89
7 changes: 7 additions & 0 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2560,6 +2560,13 @@ static int set_fast_connectable(struct sock *sk, u16 index,
if (!hdev)
return cmd_status(sk, index, MGMT_OP_SET_FAST_CONNECTABLE,
MGMT_STATUS_INVALID_PARAMS);
if (!hdev_is_powered(hdev))
return cmd_status(sk, index, MGMT_OP_SET_FAST_CONNECTABLE,
MGMT_STATUS_NOT_POWERED);

if (!test_bit(HCI_CONNECTABLE, &hdev->dev_flags))
return cmd_status(sk, index, MGMT_OP_SET_FAST_CONNECTABLE,
MGMT_STATUS_REJECTED);

hci_dev_lock(hdev);

Expand Down

0 comments on commit 2b7a15b

Please sign in to comment.