From: Vinicius Costa Gomes <vinicius.gomes@intel.com>
To: Andrejs Hanins <andrejs.hanins@ubnt.com>,
"linux-bluetooth\@vger.kernel.org"
<linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH] core/advertising: Fix byte order for MGMT_OP_ADD_ADVERTISING flags
Date: Fri, 24 Jul 2015 14:55:46 -0300 [thread overview]
Message-ID: <87pp3h4ezh.fsf@intel.com> (raw)
In-Reply-To: <55AF7668.7030903@ubnt.com>
Hi,
Andrejs Hanins <andrejs.hanins@ubnt.com> writes:
> Fix byte order for MGMT_OP_ADD_ADVERTISING flags
> ---
> src/advertising.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Looks good.
> diff --git a/src/advertising.c b/src/advertising.c
> index d56b7a2..8c249d1 100644
> --- a/src/advertising.c
> +++ b/src/advertising.c
> @@ -500,7 +500,7 @@ static DBusMessage *refresh_advertisement(struct advertisement *ad)
> return btd_error_failed(ad->reg, "Failed");
> }
>
> - cp->flags = flags;
> + cp->flags = htobl(flags);
> cp->instance = ad->instance;
> cp->adv_data_len = adv_data_len;
> memcpy(cp->data, adv_data, adv_data_len);
> --
> 1.9.1
Cheers,
--
Vinicius
next prev parent reply other threads:[~2015-07-24 17:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-22 10:54 [PATCH] core/advertising: Fix byte order for MGMT_OP_ADD_ADVERTISING flags Andrejs Hanins
2015-07-24 17:55 ` Vinicius Costa Gomes [this message]
2016-03-17 8:02 ` Johan Hedberg
2016-03-17 10:08 ` Andrejs Hanins
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=87pp3h4ezh.fsf@intel.com \
--to=vinicius.gomes@intel.com \
--cc=andrejs.hanins@ubnt.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.