From: Johan Hedberg <johan.hedberg@gmail.com>
To: Andre Guedes <andre.guedes@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [RFC v2 3/5] Bluetooth: Add dst_type parameter to hci_connect
Date: Thu, 5 Apr 2012 13:22:08 +0300 [thread overview]
Message-ID: <20120405102208.GC32212@x220> (raw)
In-Reply-To: <1333570570-1288-4-git-send-email-andre.guedes@openbossa.org>
Hi Andre,
On Wed, Apr 04, 2012, Andre Guedes wrote:
> diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
> index 542fea2..9083a95 100644
> --- a/include/net/bluetooth/hci_core.h
> +++ b/include/net/bluetooth/hci_core.h
> @@ -574,7 +574,7 @@ int hci_chan_del(struct hci_chan *chan);
> void hci_chan_list_flush(struct hci_conn *conn);
>
> struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst,
> - __u8 sec_level, __u8 auth_type);
> + __u8 dst_type, __u8 sec_level, __u8 auth_type);
It seems like you're not using the "new" style of aligning with the
opening parenthesis here.
> --- a/net/bluetooth/mgmt.c
> +++ b/net/bluetooth/mgmt.c
> @@ -1911,11 +1911,11 @@ static int pair_device(struct sock *sk, struct hci_dev *hdev, void *data,
> auth_type = HCI_AT_DEDICATED_BONDING_MITM;
>
> if (cp->addr.type == BDADDR_BREDR)
> - conn = hci_connect(hdev, ACL_LINK, &cp->addr.bdaddr, sec_level,
> - auth_type);
> + conn = hci_connect(hdev, ACL_LINK, &cp->addr.bdaddr,
> + cp->addr.type, sec_level, auth_type);
> else
> - conn = hci_connect(hdev, LE_LINK, &cp->addr.bdaddr, sec_level,
> - auth_type);
> + conn = hci_connect(hdev, LE_LINK, &cp->addr.bdaddr,
> + cp->addr.type, sec_level, auth_type);
Same issue with the above two cases.
> --- a/net/bluetooth/sco.c
> +++ b/net/bluetooth/sco.c
> @@ -196,7 +196,8 @@ static int sco_connect(struct sock *sk)
> else
> type = SCO_LINK;
>
> - hcon = hci_connect(hdev, type, dst, BT_SECURITY_LOW, HCI_AT_NO_BONDING);
> + hcon = hci_connect(hdev, type, dst, BDADDR_BREDR, BT_SECURITY_LOW,
> + HCI_AT_NO_BONDING);
And here as well.
Johan
next prev parent reply other threads:[~2012-04-05 10:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-04 20:16 [RFC v2 0/5] LE Connection Andre Guedes
2012-04-04 20:16 ` [RFC v2 1/5] Bluetooth: Add address type to struct sockaddr_l2 Andre Guedes
2012-04-04 20:16 ` [RFC v2 2/5] Bluetooth: Move address type macros to bluetooth.h Andre Guedes
2012-04-04 20:16 ` [RFC v2 3/5] Bluetooth: Add dst_type parameter to hci_connect Andre Guedes
2012-04-05 10:22 ` Johan Hedberg [this message]
2012-04-05 11:17 ` Anderson Lizardo
2012-04-05 11:31 ` Johan Hedberg
2012-04-05 14:04 ` Andre Guedes
2012-04-04 20:16 ` [RFC v2 4/5] Bluetooth: Use address type info from User-space Andre Guedes
2012-04-05 10:23 ` Johan Hedberg
2012-04-04 20:16 ` [RFC v2 5/5] Bluetooth: Remove advertising cache Andre Guedes
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=20120405102208.GC32212@x220 \
--to=johan.hedberg@gmail.com \
--cc=andre.guedes@openbossa.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox