From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Prepare patch bluez for the CoD in hci_conn
Date: Mon, 06 Dec 2004 09:41:56 +0100 [thread overview]
Message-ID: <1102322516.8510.74.camel@pegasus> (raw)
In-Reply-To: <1102348405.3281.4.camel@debian>
[-- Attachment #1: Type: text/plain, Size: 230 bytes --]
Hi Chen,
> The attachment is my patch, the comments and the debug info can be
> removed as soon as this patch is tested fully.
and your patch is quite too complex. Mine consists of three additional
lines only.
Regards
Marcel
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 1138 bytes --]
===== include/net/bluetooth/hci_core.h 1.29 vs edited =====
--- 1.29/include/net/bluetooth/hci_core.h 2004-12-06 09:15:52 +01:00
+++ edited/include/net/bluetooth/hci_core.h 2004-12-06 09:26:59 +01:00
@@ -152,6 +152,7 @@
__u16 state;
__u8 type;
__u8 out;
+ __u8 dev_class[3];
__u32 link_mode;
unsigned long pend;
===== net/bluetooth/hci_conn.c 1.18 vs edited =====
--- 1.18/net/bluetooth/hci_conn.c 2004-12-06 09:16:18 +01:00
+++ edited/net/bluetooth/hci_conn.c 2004-12-06 09:38:53 +01:00
@@ -74,6 +74,7 @@
cp.pscan_rep_mode = ie->data.pscan_rep_mode;
cp.pscan_mode = ie->data.pscan_mode;
cp.clock_offset = ie->data.clock_offset | __cpu_to_le16(0x8000);
+ memcpy(conn->dev_class, ie->data.dev_class, 3);
}
cp.pkt_type = __cpu_to_le16(hdev->pkt_type & ACL_PTYPE_MASK);
===== net/bluetooth/hci_event.c 1.20 vs edited =====
--- 1.20/net/bluetooth/hci_event.c 2004-12-06 09:16:20 +01:00
+++ edited/net/bluetooth/hci_event.c 2004-12-06 09:29:36 +01:00
@@ -555,6 +555,7 @@
return;
}
}
+ memcpy(conn->dev_class, ev->dev_class, 3);
conn->state = BT_CONNECT;
hci_dev_unlock(hdev);
next prev parent reply other threads:[~2004-12-06 8:41 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-06 13:34 [Bluez-devel] Prepare patch bluez for the CoD in hci_conn Chen Bin
2004-12-06 6:40 ` Marcel Holtmann
2004-12-06 15:11 ` Chen Bin
2004-12-06 7:18 ` Marcel Holtmann
2004-12-06 15:50 ` Chen Bin
2004-12-06 8:07 ` Marcel Holtmann
2004-12-06 15:53 ` Chen Bin
2004-12-06 8:41 ` Marcel Holtmann [this message]
2004-12-06 16:54 ` Chen Bin
2004-12-06 9:04 ` Marcel Holtmann
2004-12-06 17:40 ` Chen Bin
2004-12-06 9:56 ` Marcel Holtmann
2004-12-06 17:05 ` Chen Bin
2004-12-06 9:14 ` Marcel Holtmann
2004-12-06 17:21 ` Chen Bin
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=1102322516.8510.74.camel@pegasus \
--to=marcel@holtmann.org \
--cc=bluez-devel@lists.sourceforge.net \
/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.