public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Sheldon Demario <sheldon.demario@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v3 2/5] Change CreatePairedDevice to support LE devices
Date: Tue, 21 Dec 2010 10:42:43 +0200	[thread overview]
Message-ID: <20101221084243.GA14108@jh-x301> (raw)
In-Reply-To: <1292889434-3773-1-git-send-email-sheldon.demario@openbossa.org>

Hi Sheldon,

On Mon, Dec 20, 2010, Sheldon Demario wrote:
> +static struct btd_device *create_device_internal(DBusConnection *conn,
> +						struct btd_adapter *adapter,
> +						const gchar *address,
> +						gboolean secure, int *err)
> +{
> +	struct remote_dev_info *dev, match;
> +	struct btd_device *device;
> +	device_type_t type;
> +
> +	memset(&match, 0, sizeof(struct remote_dev_info));
> +	str2ba(address, &match.bdaddr);
> +	match.name_status = NAME_ANY;
> +
> +	dev = adapter_search_found_devices(adapter, &match);
> +	if (dev && dev->flags)
> +		type = flags2type(dev->flags);
> +	else
> +		type = DEVICE_TYPE_BREDR;
> +
> +	if (!secure && type == DEVICE_TYPE_LE &&
> +					!event_is_connectable(dev->evt_type)) {

I think you got something mixed up here. I asked you to change the
sec_level_high variable occurences to secure. Here you've gone and
changed the force variable to secure (something that I didn't request).

I.e. please use "force" like before (since that describes its purpose
within the create_device_internal function more intuitively) and change
the following:

> +int device_browse_primary(struct btd_device *device, DBusConnection *conn,
> +				DBusMessage *msg, gboolean sec_level_high)

> +int device_browse_primary(struct btd_device *device, DBusConnection *conn,
> +				DBusMessage *msg, gboolean sec_level_high);

>  int bt_discover_primary(const bdaddr_t *src, const bdaddr_t *dst, int psm,
>  					bt_primary_t cb, void *user_data,
> +					gboolean sec_level_high,
>  					bt_destroy_t destroy)

>  int bt_discover_primary(const bdaddr_t *src, const bdaddr_t *dst, int psm,
>  					bt_primary_t cb, void *user_data,
> +					gboolean sec_level_high,
>  					bt_destroy_t destroy);

Johan

  reply	other threads:[~2010-12-21  8:42 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-15 19:54 [PATCH 1/5] Implement cancel primary discovery session Claudio Takahasi
2010-12-15 19:54 ` [PATCH 2/5] Change CreatePairedDevice to support LE devices Claudio Takahasi
2010-12-16  9:24   ` Johan Hedberg
2010-12-16 17:16     ` Claudio Takahasi
2010-12-16 21:01       ` Johan Hedberg
2010-12-20 22:43         ` [PATCH v2 " Claudio Takahasi
2010-12-20 22:59           ` Johan Hedberg
2010-12-20 23:57             ` [PATCH v3 " Sheldon Demario
2010-12-21  8:42               ` Johan Hedberg [this message]
2010-12-21 14:34                 ` [PATCH v4 " Sheldon Demario
2010-12-23 21:29                 ` [PATCH v5 " Sheldon Demario
2010-12-23 22:37                   ` Johan Hedberg
2010-12-16 22:42   ` [PATCH " Brian Gix
2010-12-20 14:03     ` Claudio Takahasi
2010-12-15 19:54 ` [PATCH 3/5] Return an error if adapter_create_device fails Claudio Takahasi
2010-12-20 22:45   ` Claudio Takahasi
2010-12-15 19:54 ` [PATCH 4/5] Fix missing reply when create device is cancelled Claudio Takahasi
2010-12-20 22:47   ` [PATCH v2 " Claudio Takahasi
2010-12-20 23:00     ` Johan Hedberg
2010-12-15 19:54 ` [PATCH 5/5] Remove unneeded variable Claudio Takahasi
2010-12-20 22:49   ` [PATCH v2 " Claudio Takahasi
2010-12-20 23:02     ` Johan Hedberg
2010-12-21 12:03       ` Anderson Lizardo
2010-12-21 12:02     ` [PATCH v3] " Anderson Lizardo
2010-12-21 12:47       ` Johan Hedberg
2010-12-16  9:15 ` [PATCH 1/5] Implement cancel primary discovery session Johan Hedberg

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=20101221084243.GA14108@jh-x301 \
    --to=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=sheldon.demario@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