Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291027
b: refs/heads/master
c: 54d04db
h: refs/heads/master
i:
  291025: 573aa11
  291023: 85177c9
v: v3
  • Loading branch information
Johan Hedberg committed Feb 23, 2012
1 parent 6e7fe10 commit 4171738
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 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: c80da27e868f6ffbe1c6588937aa4e7aeab21dec
refs/heads/master: 54d04dbbb933e8a49429d602b847e367782267e9
17 changes: 13 additions & 4 deletions trunk/net/bluetooth/hci_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,19 @@ static void hci_setup(struct hci_dev *hdev)
if (hdev->hci_ver > BLUETOOTH_VER_1_1)
hci_send_cmd(hdev, HCI_OP_READ_LOCAL_COMMANDS, 0, NULL);

if (hdev->features[6] & LMP_SIMPLE_PAIR &&
test_bit(HCI_SSP_ENABLED, &hdev->dev_flags)) {
u8 mode = 0x01;
hci_send_cmd(hdev, HCI_OP_WRITE_SSP_MODE, sizeof(mode), &mode);
if (hdev->features[6] & LMP_SIMPLE_PAIR) {
if (test_bit(HCI_SSP_ENABLED, &hdev->dev_flags)) {
u8 mode = 0x01;
hci_send_cmd(hdev, HCI_OP_WRITE_SSP_MODE,
sizeof(mode), &mode);
} else {
struct hci_cp_write_eir cp;

memset(hdev->eir, 0, sizeof(hdev->eir));
memset(&cp, 0, sizeof(cp));

hci_send_cmd(hdev, HCI_OP_WRITE_EIR, sizeof(cp), &cp);
}
}

if (hdev->features[3] & LMP_RSSI_INQ)
Expand Down

0 comments on commit 4171738

Please sign in to comment.