|
|
Choosing A Webhost: |
Re: Does bluetooth work with amd64?: msg#00008os.netbsd.ports.x86-64
On Tue, 15 May 2007, Juan RP wrote: > > ACL data: handle 0x0003 flags 0x02 dlen 12 > L2CAP(s): Connect req: psm 1 scid 0x0040 > < ACL data: handle 0x0003 flags 0x02 dlen 24 > < ACL data: handle 0x0003 flags 0x02 dlen 20 Ah, hcidump won't disassemble any of the outgoing L2CAP packets, and I see spurious data - I think I see the problem, can you try the patch below? (it accidentally worked on 32-bit because both lengths are 4 octets) iain --- /usr/src/sys/netbt/l2cap_signal.c 2007-04-21 07:17:29.000000000 +0100 +++ l2cap_signal.c 2007-05-16 10:24:17.000000000 +0100 @@ -918,18 +918,18 @@ /* Command Data */ if (length > 0) - m_copyback(m, sizeof(hdr) + sizeof(cmd), length, data); + m_copyback(m, sizeof(*hdr) + sizeof(*cmd), length, data); /* Command Header */ cmd->code = code; cmd->ident = ident; cmd->length = htole16(length); - length += sizeof(cmd); + length += sizeof(*cmd); /* C-Frame Header */ hdr->length = htole16(length); hdr->dcid = htole16(L2CAP_SIGNAL_CID); - length += sizeof(hdr); + length += sizeof(*hdr); if (m->m_pkthdr.len != MAX(MHLEN, length)) { m_freem(m);
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Does bluetooth work with amd64?, Juan RP |
|---|---|
| Next by Date: | Re: Does bluetooth work with amd64?, Juan RP |
| Previous by Thread: | Re: Does bluetooth work with amd64?, Juan RP |
| Next by Thread: | Re: Does bluetooth work with amd64?, Juan RP |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |