From: Marcel Holtmann <marcel@holtmann.org>
To: Emeltchenko Andrei <Andrei.Emeltchenko.news@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [RFCv1 4/6] Bluetooth: Initialize default flow control mode
Date: Fri, 25 Nov 2011 13:02:09 +0100 [thread overview]
Message-ID: <1322222529.29909.20.camel@aeonflux> (raw)
In-Reply-To: <1322139125-22377-5-git-send-email-Andrei.Emeltchenko.news@gmail.com>
Hi Andrei,
> include/net/bluetooth/hci.h | 4 ++++
> net/bluetooth/hci_core.c | 4 ++++
> 2 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
> index ee83c36..67f7028 100644
> --- a/include/net/bluetooth/hci.h
> +++ b/include/net/bluetooth/hci.h
> @@ -271,6 +271,10 @@ enum {
> #define HCI_ERROR_LOCAL_HOST_TERM 0x16
> #define HCI_ERROR_PAIRING_NOT_ALLOWED 0x18
>
> +/* Flow control modes */
> +#define HCI_PACKET_BASED_FLOW_CTL_MODE 0x00
> +#define HCI_BLOCK_BASED_FLOW_CTL_MODE 0x01
see my other email. You have the naming backwards here.
> +
> /* ----- HCI Commands ---- */
> #define HCI_OP_NOP 0x0000
>
> diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
> index a0247d3..2e4211e 100644
> --- a/net/bluetooth/hci_core.c
> +++ b/net/bluetooth/hci_core.c
> @@ -198,6 +198,8 @@ static void bredr_init(struct hci_dev *hdev)
> __le16 param;
> __u8 flt_type;
>
> + hdev->flow_ctl_mode = HCI_PACKET_BASED_FLOW_CTL_MODE;
> +
> /* Mandatory initialization */
>
> /* Reset */
> @@ -244,6 +246,8 @@ static void bredr_init(struct hci_dev *hdev)
>
> static void amp_init(struct hci_dev *hdev)
> {
> + hdev->flow_ctl_mode = HCI_BLOCK_BASED_FLOW_CTL_MODE;
> +
> /* Reset */
> hci_send_cmd(hdev, HCI_OP_RESET, 0, NULL);
>
Otherwise this is fine.
Regards
Marcel
next prev parent reply other threads:[~2011-11-25 12:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-24 12:51 [RFCv1 0/6] AMP/BREDR initialization patches Emeltchenko Andrei
2011-11-24 12:52 ` [RFCv1 1/6] Bluetooth: remove old code Emeltchenko Andrei
2011-11-24 12:52 ` [RFCv1 2/6] Bluetooth: Split ctrl init to BREDR and AMP parts Emeltchenko Andrei
2011-11-25 12:00 ` Marcel Holtmann
2011-12-02 11:50 ` Gustavo Padovan
2011-12-02 11:56 ` Emeltchenko Andrei
2011-12-05 9:34 ` Emeltchenko Andrei
2011-11-24 12:52 ` [RFCv1 3/6] Bluetooth: Add HCI Read Flow Control Mode function Emeltchenko Andrei
2011-11-25 12:01 ` Marcel Holtmann
2011-11-24 12:52 ` [RFCv1 4/6] Bluetooth: Initialize default flow control mode Emeltchenko Andrei
2011-11-25 12:02 ` Marcel Holtmann [this message]
2011-11-24 12:52 ` [RFCv1 5/6] Bluetooth: Add HCI Read Data Block Size function Emeltchenko Andrei
2011-11-24 12:52 ` [RFCv1 6/6] Bluetooth: Recalculate sched for HCI block flow ctrl Emeltchenko Andrei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1322222529.29909.20.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=Andrei.Emeltchenko.news@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.