Bluetooth: Add basic discovery commands to the management interface
Subsystems (2)
PATCH 1/2 Bluetooth: Add basic discovery commands to the management interface
From: Johan Hedberg <[email protected]>
This patch adds start_discovery and stop_discovery commands to the management interface. Right now their implementation is fairly simplistic and the parameters are fixed to what user space has defaulted to so far.
This is the very initial phase for discovery implementation into the kernel. Next steps include name resolution, LE scanning and bdaddr type handling.
--- include/net/bluetooth/mgmt.h | 4 ++ net/bluetooth/mgmt.c | 77 +++++++++++++++++++++++++++++++++++++++++- 2 files changed, 80 insertions(+), 1 deletions(-)
include/net/bluetooth/mgmt.h +4 -0
@@ -195,6 +195,10 @@ struct mgmt_cp_remove_remote_oob_data {bdaddr_t bdaddr; } __packed; +#define MGMT_OP_START_DISCOVERY 0x001B + +#define MGMT_OP_STOP_DISCOVERY 0x001C +#define MGMT_EV_CMD_COMPLETE 0x0001struct mgmt_ev_cmd_complete {__le16 opcode;
net/bluetooth/mgmt.c +76 -1
92 lines not on this page · raw message
Signature · 1 line
1.7.1
Hi Briglia,
Quoted 10 lines · On Tue, Apr 19, 2011, [email protected] wrote:
From: Johan Hedberg <[email protected]>
This patch adds
start_discoveryandstop_discoverycommands to the management interface. Right now their implementation is fairly simplistic and the parameters are fixed to what user space has defaulted to so far.
This is the very initial phase for discovery implementation into the kernel. Next steps include name resolution, LE scanning and bdaddr type handling.
Quoted 6 lines
Signed-off-by Johan Hedberg <[email protected]>Signed-off-by Anderson Briglia <[email protected]>--- include/net/bluetooth/mgmt.h | 4 ++ net/bluetooth/mgmt.c | 77 +++++++++++++++++++++++++++++++++++++++++- 2 files changed, 80 insertions(+), 1 deletions(-)
I'd appreciate it if you'd check with me first before going about sending patches in my name that I haven't 100% authored. There are e.g. some coding style things I'd have cleaned up before making this public. Depending on the amount of code changed (maybe not enough for this case though) you could have even put yourself as author and simply mentioned "Based on original code by Johan..." somewhere in the commit message.
Johan
Hi Johan,
Quoted 20 lines · Johan Hedberg
Hi Briglia,
Quoted 10 lines · On Tue, Apr 19, 2011, [email protected] wrote:
From: Johan Hedberg <[email protected]>
This patch adds
start_discoveryandstop_discoverycommands to the management interface. Right now their implementation is fairly simplistic and the parameters are fixed to what user space has defaulted to so far.
This is the very initial phase for discovery implementation into the kernel. Next steps include name resolution, LE scanning and bdaddr type handling.Quoted 6 lines
Signed-off-by Johan Hedberg <[email protected]>Signed-off-by Anderson Briglia <[email protected]>---
include/net/bluetooth/mgmt.h | 4 ++
net/bluetooth/mgmt.c | 77 +++++++++++++++++++++++++++++++++++++++++-2 files changed, 80 insertions(+), 1 deletions(-)
Quoted 6 lines
I'd appreciate it if you'd check with me first before going about sending patches in my name that I haven't 100% authored. There are e.g. some coding style things I'd have cleaned up before making this public. Depending on the amount of code changed (maybe not enough for this case though) you could have even put yourself as author and simply mentioned "Based on original code by Johan..." somewhere in the commit message.
Yes, you're right. Actually I thought just the "Signed-off-by" adding myself would be enough since the code is pretty much the same and you had already sent this few weeks ago. Anyway I should contact you first before send to the mailing list, sorry.
What do you prefer? I modify the commit message and the patch authoring (and send it again)? Which coding style issues did you notice?
Regards,
Anderson Briglia
Quoted 3 lines
Johan
Signature · 3 lines
INdT - Instituto Nokia de tecnologia +55 2126 1122 http://techblog.briglia.net
Hi,
Quoted 1 line · Anderson Briglia
you had already sent this few weeks ago.
Could you point me to that thread? I'm not aware of sending these patches before. AFAIK they were only available in my kernel.org tree (which I use for experimental stuff not yet ready for upstream).
Quoted 2 lines
What do you prefer? I modify the commit message and the patch authoring (and send it again)?
As I said, the changes are probably too minor to justify an author change. My main point was that don't send stuff in other peoples name without talking to them first.
Quoted 1 line
Which coding style issues did you notice?
Minor things like adding an extra empty line at the end of both patches (shouldn't checkpatch.pl complain about that?) and an extra space in the format string of a BT_DBG("hci%u ", index) debug print in the first patch.
Johan