From: Gustavo Padovan <gustavo@padovan.org>
To: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v2 2/5] Bluetooth: Refactor ACL connection into its own function
Date: Fri, 1 Jun 2012 19:57:19 -0300 [thread overview]
Message-ID: <20120601225719.GE24769@joana> (raw)
In-Reply-To: <1338515876-7547-3-git-send-email-vinicius.gomes@openbossa.org>
Hi Vinicius,
* Vinicius Costa Gomes <vinicius.gomes@openbossa.org> [2012-05-31 22:57:53 -0300]:
> The hci_connect() function was starting to get too complicated to be
> quickly understood. We can separated the creation of a new ACL
> connection into its own function.
>
> Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
> ---
> net/bluetooth/hci_conn.c | 32 ++++++++++++++++++++++----------
> 1 file changed, 22 insertions(+), 10 deletions(-)
>
> diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
> index 31afef7..79c80b2 100644
> --- a/net/bluetooth/hci_conn.c
> +++ b/net/bluetooth/hci_conn.c
> @@ -496,18 +496,10 @@ static struct hci_conn *hci_connect_le(struct hci_dev *hdev, bdaddr_t *dst,
> return le;
> }
>
> -/* Create SCO, ACL or LE connection.
> - * Device _must_ be locked */
> -struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst,
> - __u8 dst_type, __u8 sec_level, __u8 auth_type)
> +static struct hci_conn *hci_connect_acl(struct hci_dev *hdev, bdaddr_t *dst,
> + u8 sec_level, u8 auth_type)
> {
So this is confusing now, we have hci_acl_connect() and now you want to add
hci_connect_acl(). We need better names here.
Maybe hci_acl_connect() can be turned int hci_acl_create_connetion(), so
can hco_acl_connect_cancel().
Gustavo
next prev parent reply other threads:[~2012-06-01 22:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-01 1:57 [PATCH v2 0/5] Bluetooth: Refactoring hci_connect() Vinicius Costa Gomes
2012-06-01 1:57 ` [PATCH v2 1/5] Bluetooth: Refactor LE connection into its own function Vinicius Costa Gomes
2012-06-01 1:57 ` [PATCH v2 2/5] Bluetooth: Refactor ACL " Vinicius Costa Gomes
2012-06-01 22:57 ` Gustavo Padovan [this message]
2012-06-01 1:57 ` [PATCH v2 3/5] Bluetooth: Refactor SCO " Vinicius Costa Gomes
2012-06-01 1:57 ` [PATCH v2 4/5] Bluetooth: Simplify a the connection type handling Vinicius Costa Gomes
2012-06-01 1:57 ` [PATCH v2 5/5] Bluetooth: Add type information to the hci_connect() debug statement Vinicius Costa Gomes
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=20120601225719.GE24769@joana \
--to=gustavo@padovan.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=vinicius.gomes@openbossa.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox