From: Andrei Emeltchenko <andrei.emeltchenko.news@gmail.com>
To: Johan Hedberg <johan.hedberg@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Bluetooth: mgmt: Implement support for passkey notification
Date: Wed, 5 Sep 2012 12:25:43 +0300 [thread overview]
Message-ID: <20120905092536.GA28333@aemeltch-MOBL1> (raw)
In-Reply-To: <1346832850-25061-1-git-send-email-johan.hedberg@gmail.com>
Hi Johan,
nitpicks
On Wed, Sep 05, 2012 at 11:14:10AM +0300, Johan Hedberg wrote:
...
> + conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr);
> + if (!conn)
> + return;
> +
> + switch (ev->type) {
> + case HCI_KEYPRESS_STARTED:
> + conn->passkey_entered = 0;
> + return;
> + case HCI_KEYPRESS_ENTERED:
> + conn->passkey_entered++;
> + break;
> + case HCI_KEYPRESS_ERASED:
> + conn->passkey_entered--;
> + break;
> + case HCI_KEYPRESS_CLEARED:
> + conn->passkey_entered = 0;
> + break;
Can we use the same style for switch like below:
...
> + case HCI_EV_USER_PASSKEY_NOTIFY:
> + hci_user_passkey_notify_evt(hdev, skb);
> + break;
> +
> + case HCI_EV_KEYPRESS_NOTIFY:
> + hci_keypress_notify_evt(hdev, skb);
> + break;
> +
> case HCI_EV_SIMPLE_PAIR_COMPLETE:
> hci_simple_pair_complete_evt(hdev, skb);
> break;
Best regards
Andrei Emeltchenko
next prev parent reply other threads:[~2012-09-05 9:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-05 8:14 [PATCH] Bluetooth: mgmt: Implement support for passkey notification Johan Hedberg
2012-09-05 8:29 ` Marcel Holtmann
2012-09-05 9:28 ` Johan Hedberg
2012-09-05 9:25 ` Andrei Emeltchenko [this message]
2012-09-06 8:09 ` [PATCH v2] " Johan Hedberg
2012-09-06 14:57 ` Marcel Holtmann
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=20120905092536.GA28333@aemeltch-MOBL1 \
--to=andrei.emeltchenko.news@gmail.com \
--cc=johan.hedberg@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox