Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279377
b: refs/heads/master
c: 2455a3e
h: refs/heads/master
i:
  279375: 73c2333
v: v3
  • Loading branch information
Andrei Emeltchenko authored and Gustavo F. Padovan committed Dec 20, 2011
1 parent 0651b01 commit 92ab3ad
Show file tree
Hide file tree
Showing 3 changed files with 9 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: e61ef49966777defa84b04159ea23cdeb2c7cd4c
refs/heads/master: 2455a3ea0c0235fe3c32b67649ff7db3fb892d90
4 changes: 4 additions & 0 deletions trunk/include/net/bluetooth/hci.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ enum {
#define HCI_ERROR_LOCAL_HOST_TERM 0x16
#define HCI_ERROR_PAIRING_NOT_ALLOWED 0x18

/* Flow control modes */
#define HCI_FLOW_CTL_MODE_PACKET_BASED 0x00
#define HCI_FLOW_CTL_MODE_BLOCK_BASED 0x01

/* ----- HCI Commands ---- */
#define HCI_OP_NOP 0x0000

Expand Down
4 changes: 4 additions & 0 deletions trunk/net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ static void bredr_init(struct hci_dev *hdev)
__le16 param;
__u8 flt_type;

hdev->flow_ctl_mode = HCI_FLOW_CTL_MODE_PACKET_BASED;

/* Mandatory initialization */

/* Reset */
Expand Down Expand Up @@ -245,6 +247,8 @@ static void bredr_init(struct hci_dev *hdev)

static void amp_init(struct hci_dev *hdev)
{
hdev->flow_ctl_mode = HCI_FLOW_CTL_MODE_BLOCK_BASED;

/* Reset */
hci_send_cmd(hdev, HCI_OP_RESET, 0, NULL);

Expand Down

0 comments on commit 92ab3ad

Please sign in to comment.