Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291069
b: refs/heads/master
c: 0b60eba
h: refs/heads/master
i:
  291067: ff9591b
v: v3
  • Loading branch information
Johan Hedberg committed Feb 27, 2012
1 parent 5280185 commit e8bc278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 816a11d5ced501d368fabe09172f3d62744e8b53
refs/heads/master: 0b60eba1b29740a606e6b7694d2dc98b6085a1bf
5 changes: 3 additions & 2 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ static int set_le(struct sock *sk, u16 index, void *data, u16 len)
struct pending_cmd *cmd;
struct hci_dev *hdev;
int err;
u8 val;
u8 val, enabled;

BT_DBG("request for hci%u", index);

Expand All @@ -1280,8 +1280,9 @@ static int set_le(struct sock *sk, u16 index, void *data, u16 len)
}

val = !!cp->val;
enabled = !!(hdev->host_features[0] & LMP_HOST_LE);

if (!hdev_is_powered(hdev)) {
if (!hdev_is_powered(hdev) || val == enabled) {
bool changed = false;

if (val != test_bit(HCI_LE_ENABLED, &hdev->dev_flags)) {
Expand Down

0 comments on commit e8bc278

Please sign in to comment.