<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-6567</id>
	<title>Nabble - freebsd-bluetooth</title>
	<updated>2009-12-01T15:25:55Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/freebsd-bluetooth-f6567.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/freebsd-bluetooth-f6567.html" />
	<subtitle type="html">Using Bluetooth in FreeBSD environments</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26600937</id>
	<title>Re: obexapp patches for type-punning</title>
	<published>2009-12-01T15:25:55Z</published>
	<updated>2009-12-01T15:25:55Z</updated>
	<author>
		<name>Maksim Yevmenkin-2</name>
	</author>
	<content type="html">On Tue, Dec 1, 2009 at 11:31 AM, Iain Hibbert &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26600937&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;plunky@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; while on the subject of obexapp, I have a patch to remove some annoying
&lt;br&gt;&amp;gt; 'type punning' compilation errors that gcc spits out that I'm not totally
&lt;br&gt;&amp;gt; sure are valid, but see below anyway..
&lt;br&gt;&lt;br&gt;that is why i had -fno-strict-aliasing in makefile :)
&lt;br&gt;&lt;br&gt;&amp;gt; I don't understand the OBEX protocol or libopenobex enough to know if it
&lt;br&gt;&amp;gt; is possible, but the last case also removes a potential NULL dereference -
&lt;br&gt;&amp;gt; if the OBEX_ObjectGetNonHdrData() fails to recover a proper data, an error
&lt;br&gt;&amp;gt; is logged but it carries on and hdr-&amp;gt;flags might cause a segfault?
&lt;br&gt;&lt;br&gt;yes, i think those are good. combined patch went out in the previous email.
&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;max
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26600937&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26600937&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/patch-to-make-obexapp-work-with-BSD-iconv%283%29-tp26590898p26600937.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26600917</id>
	<title>Re: patch to make obexapp work with BSD iconv(3)</title>
	<published>2009-12-01T15:24:18Z</published>
	<updated>2009-12-01T15:24:18Z</updated>
	<author>
		<name>Maksim Yevmenkin-2</name>
	</author>
	<content type="html">On Tue, Dec 1, 2009 at 11:15 AM, Iain Hibbert &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26600917&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;plunky@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, 1 Dec 2009, Matthias Drochner wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;iconv_open(3), this is more robust than trying to interpret
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;the locale string
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; btw nl_langinfo(3) is defined to always return a valid pointer, so the
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (locale == NULL)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return (-1);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; is not required..
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; also, the locale variable can be private to obexapp_util_locale_init() as
&lt;br&gt;&amp;gt; it is not used elsewhere
&lt;/div&gt;&lt;/div&gt;ok, so, combined patch would look something like the attached.
&lt;br&gt;&lt;br&gt;could you please give it a try and see if it still works?
&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;max
&lt;br&gt;&lt;br /&gt;Index: Makefile
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /usr/local/cvs/ports/obexapp/Makefile,v
&lt;br&gt;retrieving revision 1.11
&lt;br&gt;diff -u -r1.11 Makefile
&lt;br&gt;--- Makefile	23 Apr 2007 18:29:18 -0000	1.11
&lt;br&gt;+++ Makefile	1 Dec 2009 20:00:19 -0000
&lt;br&gt;@@ -14,8 +14,7 @@
&lt;br&gt;&amp;nbsp;DEBUG_FLAGS=	-g
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;CFLAGS+=	-I/usr/local/include \
&lt;br&gt;-		-I/usr/local/include/openobex \
&lt;br&gt;-		-fno-strict-aliasing
&lt;br&gt;+		-I/usr/local/include/openobex
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;DPADD=		${LIBBLUETOOTH} ${LIBSDP} ${LIBBSDXML} ${LIBREADLINE}
&lt;br&gt;&amp;nbsp;LDADD=		-L/usr/lib -L/usr/local/lib \
&lt;br&gt;Index: client.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /usr/local/cvs/ports/obexapp/client.c,v
&lt;br&gt;retrieving revision 1.18
&lt;br&gt;diff -u -r1.18 client.c
&lt;br&gt;--- client.c	9 Apr 2009 23:16:31 -0000	1.18
&lt;br&gt;+++ client.c	1 Dec 2009 19:40:32 -0000
&lt;br&gt;@@ -1219,9 +1219,8 @@
&lt;br&gt;&amp;nbsp;		int obex_rsp)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	context_p		 context = (context_p) OBEX_GetUserData(handle);
&lt;br&gt;-	obex_connect_hdr_t &amp;nbsp; &amp;nbsp; &amp;nbsp;*hdr = NULL;
&lt;br&gt;&amp;nbsp;	obex_headerdata_t	 hv;
&lt;br&gt;-	uint8_t			 hi;
&lt;br&gt;+	uint8_t			 hi, *data = NULL;
&lt;br&gt;&amp;nbsp;	uint32_t		 hlen;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	log_debug(&amp;quot;%s(): Connect completed, response %#x&amp;quot;, __func__, obex_rsp);
&lt;br&gt;@@ -1232,10 +1231,12 @@
&lt;br&gt;&amp;nbsp;	if (obex_rsp != OBEX_RSP_SUCCESS)
&lt;br&gt;&amp;nbsp;		return (obex_rsp);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	if (OBEX_ObjectGetNonHdrData(object, (uint8_t **) &amp;hdr) == sizeof(*hdr))
&lt;br&gt;+	if (OBEX_ObjectGetNonHdrData(object, &amp;data) == sizeof(obex_connect_hdr_t))
&lt;br&gt;&amp;nbsp;		log_debug(&amp;quot;%s(): OBEX connect header: &amp;quot; \
&lt;br&gt;-			&amp;quot;version=%#x, flags=%#x, mtu=%d&amp;quot;, __func__, 
&lt;br&gt;-			hdr-&amp;gt;version, hdr-&amp;gt;flags, ntohs(hdr-&amp;gt;mtu));
&lt;br&gt;+			&amp;quot;version=%#x, flags=%#x, mtu=%d&amp;quot;, __func__,
&lt;br&gt;+			((obex_connect_hdr_t *) data)-&amp;gt;version,
&lt;br&gt;+			((obex_connect_hdr_t *) data)-&amp;gt;flags,
&lt;br&gt;+			ntohs(((obex_connect_hdr_t *) data)-&amp;gt;mtu));
&lt;br&gt;&amp;nbsp;	else
&lt;br&gt;&amp;nbsp;		log_err(&amp;quot;%s(): Invalid OBEX connect header?!&amp;quot;, __func__);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Index: server.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /usr/local/cvs/ports/obexapp/server.c,v
&lt;br&gt;retrieving revision 1.12
&lt;br&gt;diff -u -r1.12 server.c
&lt;br&gt;--- server.c	20 Aug 2009 21:57:18 -0000	1.12
&lt;br&gt;+++ server.c	1 Dec 2009 20:04:33 -0000
&lt;br&gt;@@ -471,19 +471,20 @@
&lt;br&gt;&amp;nbsp;obexapp_server_request_connect(obex_t *handle, obex_object_t *object,
&lt;br&gt;&amp;nbsp;		__unused int obex_rsp)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;-	obex_connect_hdr_t &amp;nbsp; &amp;nbsp; &amp;nbsp;*hdr = NULL;
&lt;br&gt;&amp;nbsp;	obex_headerdata_t	 hv;
&lt;br&gt;-	uint8_t			 hi;
&lt;br&gt;+	uint8_t			 hi, *data = NULL;
&lt;br&gt;&amp;nbsp;	uint32_t		 hlen;
&lt;br&gt;&amp;nbsp;	uint8_t const		*target = NULL;
&lt;br&gt;&amp;nbsp;	int			 target_len = 0;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	log_debug(&amp;quot;%s()&amp;quot;, __func__);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	if (OBEX_ObjectGetNonHdrData(object, (uint8_t **) &amp;hdr) == sizeof(*hdr))
&lt;br&gt;+	if (OBEX_ObjectGetNonHdrData(object, &amp;data) == sizeof(obex_connect_hdr_t))
&lt;br&gt;&amp;nbsp;		log_debug(&amp;quot;%s(): OBEX connect header: version=%#x, &amp;quot; \
&lt;br&gt;-			&amp;quot;flags=%#x, mtu=%d&amp;quot;, __func__, hdr-&amp;gt;version, hdr-&amp;gt;flags,
&lt;br&gt;-			ntohs(hdr-&amp;gt;mtu));
&lt;br&gt;+			&amp;quot;flags=%#x, mtu=%d&amp;quot;, __func__,
&lt;br&gt;+			((obex_connect_hdr_t *) data)-&amp;gt;version,
&lt;br&gt;+			((obex_connect_hdr_t *) data)-&amp;gt;flags,
&lt;br&gt;+			ntohs(((obex_connect_hdr_t *) data)-&amp;gt;mtu));
&lt;br&gt;&amp;nbsp;	else
&lt;br&gt;&amp;nbsp;		log_err(&amp;quot;%s(): Invalid OBEX connect header?!&amp;quot;, __func__);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -1086,9 +1087,8 @@
&lt;br&gt;&amp;nbsp;		__unused int obex_rsp)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	context_p		 context = (context_p) OBEX_GetUserData(handle);
&lt;br&gt;-	obex_setpath_hdr_t	*hdr = NULL;
&lt;br&gt;&amp;nbsp;	obex_headerdata_t	 hv;
&lt;br&gt;-	uint8_t			 hi;
&lt;br&gt;+	uint8_t			 hi, flags = 0xff, *data = NULL;
&lt;br&gt;&amp;nbsp;	uint32_t		 hlen;
&lt;br&gt;&amp;nbsp;	int			 got_name = 0;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -1096,10 +1096,12 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	context-&amp;gt;file[0] = '\0';
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	if (OBEX_ObjectGetNonHdrData(object, (uint8_t **) &amp;hdr) == sizeof(*hdr))
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;log_debug(&amp;quot;%s(): OBEX setpath header: flags=%#x, constants=%d&amp;quot;,
&lt;br&gt;-			__func__, hdr-&amp;gt;flags, hdr-&amp;gt;constants);
&lt;br&gt;-	else
&lt;br&gt;+	if (OBEX_ObjectGetNonHdrData(object, &amp;data) == sizeof(obex_setpath_hdr_t)) {
&lt;br&gt;+		flags = ((obex_setpath_hdr_t *) data)-&amp;gt;flags;
&lt;br&gt;+
&lt;br&gt;+		log_debug(&amp;quot;%s(): OBEX setpath header: flags=%#x, constants=%d&amp;quot;,
&lt;br&gt;+			__func__, flags, ((obex_setpath_hdr_t *) data)-&amp;gt;constants);
&lt;br&gt;+	} else
&lt;br&gt;&amp;nbsp;		log_err(&amp;quot;%s(): Invalid OBEX setpath header?!&amp;quot;, __func__);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	while (OBEX_ObjectGetNextHeader(handle, object, &amp;hi, &amp;hv, &amp;hlen)) {
&lt;br&gt;@@ -1151,9 +1153,9 @@
&lt;br&gt;&amp;nbsp;		 * directory) means &amp;quot;cd ..&amp;quot;. Everything else is forbidden.
&lt;br&gt;&amp;nbsp;		 */
&lt;br&gt;&amp;nbsp;	
&lt;br&gt;-		if (hdr-&amp;gt;flags != 0x3) {
&lt;br&gt;+		if (flags != 0x3) {
&lt;br&gt;&amp;nbsp;			log_err(&amp;quot;%s(): Invalid flags for 'cd ..', flags=%#x&amp;quot;,
&lt;br&gt;-				__func__, hdr-&amp;gt;flags);
&lt;br&gt;+				__func__, flags);
&lt;br&gt;&amp;nbsp;				
&lt;br&gt;&amp;nbsp;			return (OBEXAPP_PACK_RSP_CODES(OBEX_RSP_FORBIDDEN,
&lt;br&gt;&amp;nbsp;							OBEX_RSP_FORBIDDEN));
&lt;br&gt;@@ -1169,9 +1171,9 @@
&lt;br&gt;&amp;nbsp;		 * 'cd /'. Everything else is forbidden
&lt;br&gt;&amp;nbsp;		 */
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-		if (hdr-&amp;gt;flags != 0x2) {
&lt;br&gt;+		if (flags != 0x2) {
&lt;br&gt;&amp;nbsp;			log_err(&amp;quot;%s(): Invalid flags for 'cd /', flags=%#x&amp;quot;,
&lt;br&gt;-				__func__, hdr-&amp;gt;flags);
&lt;br&gt;+				__func__, flags);
&lt;br&gt;&amp;nbsp;				
&lt;br&gt;&amp;nbsp;			return (OBEXAPP_PACK_RSP_CODES(OBEX_RSP_FORBIDDEN,
&lt;br&gt;&amp;nbsp;							OBEX_RSP_FORBIDDEN));
&lt;br&gt;@@ -1180,7 +1182,7 @@
&lt;br&gt;&amp;nbsp;		strlcpy(context-&amp;gt;file, context-&amp;gt;root, PATH_MAX);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	if (hdr-&amp;gt;flags == 0) {
&lt;br&gt;+	if (flags == 0) {
&lt;br&gt;&amp;nbsp;		if (mkdir(context-&amp;gt;file, 0755) &amp;lt; 0 &amp;&amp; errno != EEXIST) {
&lt;br&gt;&amp;nbsp;			log_err(&amp;quot;%s(): mkdir(%s) failed. %s (%d)&amp;quot;,
&lt;br&gt;&amp;nbsp;				__func__, context-&amp;gt;file, 
&lt;br&gt;Index: util.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /usr/local/cvs/ports/obexapp/util.c,v
&lt;br&gt;retrieving revision 1.15
&lt;br&gt;diff -u -r1.15 util.c
&lt;br&gt;--- util.c	20 Aug 2009 21:57:18 -0000	1.15
&lt;br&gt;+++ util.c	1 Dec 2009 19:58:53 -0000
&lt;br&gt;@@ -34,6 +34,7 @@
&lt;br&gt;&amp;nbsp;#include &amp;lt;ctype.h&amp;gt;
&lt;br&gt;&amp;nbsp;#include &amp;lt;errno.h&amp;gt;
&lt;br&gt;&amp;nbsp;#include &amp;lt;iconv.h&amp;gt;
&lt;br&gt;+#include &amp;lt;langinfo.h&amp;gt;
&lt;br&gt;&amp;nbsp;#include &amp;lt;libgen.h&amp;gt;
&lt;br&gt;&amp;nbsp;#include &amp;lt;limits.h&amp;gt;
&lt;br&gt;&amp;nbsp;#include &amp;lt;locale.h&amp;gt;
&lt;br&gt;@@ -56,7 +57,6 @@
&lt;br&gt;&amp;nbsp; * Init locale
&lt;br&gt;&amp;nbsp; */
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-static char const	*locale = NULL;
&lt;br&gt;&amp;nbsp;static int32_t		 utf16 = 0;
&lt;br&gt;&amp;nbsp;static iconv_t		 utf82locale = (iconv_t) -1;
&lt;br&gt;&amp;nbsp;static iconv_t		 locale2utf8 = (iconv_t) -1;
&lt;br&gt;@@ -66,25 +66,10 @@
&lt;br&gt;&amp;nbsp;int
&lt;br&gt;&amp;nbsp;obexapp_util_locale_init(void)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;-	int	one = 1;
&lt;br&gt;+	char const	*locale;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	locale = setlocale(LC_CTYPE, &amp;quot;&amp;quot;);
&lt;br&gt;-	if (locale == NULL)
&lt;br&gt;-		return (-1);
&lt;br&gt;-
&lt;br&gt;-	if (strcmp(locale, &amp;quot;ASCII&amp;quot;) == 0 ||
&lt;br&gt;-	 &amp;nbsp; &amp;nbsp;strcmp(locale, &amp;quot;C&amp;quot;) == 0 ||
&lt;br&gt;-	 &amp;nbsp; &amp;nbsp;strcmp(locale, &amp;quot;POSIX&amp;quot;) == 0 ||
&lt;br&gt;-	 &amp;nbsp; &amp;nbsp;strcmp(locale, &amp;quot;US-ASCII&amp;quot;) == 0)
&lt;br&gt;-		locale = &amp;quot;en_US.US-ASCII&amp;quot;;
&lt;br&gt;-
&lt;br&gt;-	locale = strchr(locale, '.');
&lt;br&gt;-	if (locale == NULL)
&lt;br&gt;-		return (-1);
&lt;br&gt;-
&lt;br&gt;-	locale ++;
&lt;br&gt;-	if (locale[0] == '\0')
&lt;br&gt;-		return (-1);
&lt;br&gt;+	setlocale(LC_CTYPE, &amp;quot;&amp;quot;);
&lt;br&gt;+	locale = nl_langinfo(CODESET);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	utf16 = (strstr(locale, &amp;quot;UTF-16&amp;quot;) != NULL)? 1 : 0;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -94,7 +79,6 @@
&lt;br&gt;&amp;nbsp;		return (-1);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	iconv(utf82locale, NULL, NULL, NULL, NULL);
&lt;br&gt;-	iconvctl(utf82locale, ICONV_SET_DISCARD_ILSEQ, &amp;one);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	/* current locale -&amp;gt; UTF-8 */
&lt;br&gt;&amp;nbsp;	locale2utf8 = iconv_open(&amp;quot;UTF-8&amp;quot;, locale);
&lt;br&gt;@@ -104,7 +88,6 @@
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	iconv(locale2utf8, NULL, NULL, NULL, NULL);
&lt;br&gt;-	iconvctl(locale2utf8, ICONV_SET_DISCARD_ILSEQ, &amp;one);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	/* UTF-16BE -&amp;gt; current locale */
&lt;br&gt;&amp;nbsp;	utf16be2locale = iconv_open(locale, &amp;quot;UTF-16BE&amp;quot;);
&lt;br&gt;@@ -114,7 +97,6 @@
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	iconv(utf16be2locale, NULL, NULL, NULL, NULL);
&lt;br&gt;-	iconvctl(utf16be2locale, ICONV_SET_DISCARD_ILSEQ, &amp;one);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	/* current locale -&amp;gt; UTF-16BE */
&lt;br&gt;&amp;nbsp;	locale2utf16be = iconv_open(&amp;quot;UTF-16BE&amp;quot;, locale);
&lt;br&gt;@@ -124,7 +106,6 @@
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	iconv(locale2utf16be, NULL, NULL, NULL, NULL);
&lt;br&gt;-	iconvctl(locale2utf16be, ICONV_SET_DISCARD_ILSEQ, &amp;one);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	return (0);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26600917&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26600917&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/patch-to-make-obexapp-work-with-BSD-iconv%283%29-tp26590898p26600917.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26597692</id>
	<title>obexapp patches for type-punning</title>
	<published>2009-12-01T11:30:56Z</published>
	<updated>2009-12-01T11:30:56Z</updated>
	<author>
		<name>Iain Hibbert</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;while on the subject of obexapp, I have a patch to remove some annoying
&lt;br&gt;'type punning' compilation errors that gcc spits out that I'm not totally
&lt;br&gt;sure are valid, but see below anyway..
&lt;br&gt;&lt;br&gt;I don't understand the OBEX protocol or libopenobex enough to know if it
&lt;br&gt;is possible, but the last case also removes a potential NULL dereference -
&lt;br&gt;if the OBEX_ObjectGetNonHdrData() fails to recover a proper data, an error
&lt;br&gt;is logged but it carries on and hdr-&amp;gt;flags might cause a segfault?
&lt;br&gt;&lt;br&gt;iain
&lt;br&gt;&lt;br&gt;--- ~client.c	2009-04-10 00:16:31.000000000 +0100
&lt;br&gt;+++ client.c	2009-12-01 16:44:49.000000000 +0000
&lt;br&gt;@@ -1219,10 +1219,10 @@ obexapp_client_request_connect_done(obex
&lt;br&gt;&amp;nbsp;		int obex_rsp)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	context_p		 context = (context_p) OBEX_GetUserData(handle);
&lt;br&gt;-	obex_connect_hdr_t &amp;nbsp; &amp;nbsp; &amp;nbsp;*hdr = NULL;
&lt;br&gt;&amp;nbsp;	obex_headerdata_t	 hv;
&lt;br&gt;&amp;nbsp;	uint8_t			 hi;
&lt;br&gt;&amp;nbsp;	uint32_t		 hlen;
&lt;br&gt;+	uint8_t			*data = NULL;
&lt;br&gt;&lt;br&gt;&amp;nbsp;	log_debug(&amp;quot;%s(): Connect completed, response %#x&amp;quot;, __func__, obex_rsp);
&lt;br&gt;&lt;br&gt;@@ -1232,10 +1232,12 @@ obexapp_client_request_connect_done(obex
&lt;br&gt;&amp;nbsp;	if (obex_rsp != OBEX_RSP_SUCCESS)
&lt;br&gt;&amp;nbsp;		return (obex_rsp);
&lt;br&gt;&lt;br&gt;-	if (OBEX_ObjectGetNonHdrData(object, (uint8_t **) &amp;hdr) == sizeof(*hdr))
&lt;br&gt;+	if (OBEX_ObjectGetNonHdrData(object, &amp;data) == sizeof(obex_connect_hdr_t))
&lt;br&gt;&amp;nbsp;		log_debug(&amp;quot;%s(): OBEX connect header: &amp;quot; \
&lt;br&gt;&amp;nbsp;			&amp;quot;version=%#x, flags=%#x, mtu=%d&amp;quot;, __func__,
&lt;br&gt;-			hdr-&amp;gt;version, hdr-&amp;gt;flags, ntohs(hdr-&amp;gt;mtu));
&lt;br&gt;+			((obex_connect_hdr_t *)data)-&amp;gt;version,
&lt;br&gt;+			((obex_connect_hdr_t *)data)-&amp;gt;flags,
&lt;br&gt;+			ntohs(((obex_connect_hdr_t *)data)-&amp;gt;mtu));
&lt;br&gt;&amp;nbsp;	else
&lt;br&gt;&amp;nbsp;		log_err(&amp;quot;%s(): Invalid OBEX connect header?!&amp;quot;, __func__);
&lt;br&gt;&lt;br&gt;--- ~server.c	2009-08-20 22:57:18.000000000 +0100
&lt;br&gt;+++ server.c	2009-12-01 16:57:08.000000000 +0000
&lt;br&gt;@@ -471,19 +471,21 @@ static int
&lt;br&gt;&amp;nbsp;obexapp_server_request_connect(obex_t *handle, obex_object_t *object,
&lt;br&gt;&amp;nbsp;		__unused int obex_rsp)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;-	obex_connect_hdr_t &amp;nbsp; &amp;nbsp; &amp;nbsp;*hdr = NULL;
&lt;br&gt;&amp;nbsp;	obex_headerdata_t	 hv;
&lt;br&gt;&amp;nbsp;	uint8_t			 hi;
&lt;br&gt;&amp;nbsp;	uint32_t		 hlen;
&lt;br&gt;&amp;nbsp;	uint8_t const		*target = NULL;
&lt;br&gt;&amp;nbsp;	int			 target_len = 0;
&lt;br&gt;+	uint8_t			*data = NULL;
&lt;br&gt;&lt;br&gt;&amp;nbsp;	log_debug(&amp;quot;%s()&amp;quot;, __func__);
&lt;br&gt;&lt;br&gt;-	if (OBEX_ObjectGetNonHdrData(object, (uint8_t **) &amp;hdr) == sizeof(*hdr))
&lt;br&gt;+	if (OBEX_ObjectGetNonHdrData(object, &amp;data) == sizeof(obex_connect_hdr_t))
&lt;br&gt;&amp;nbsp;		log_debug(&amp;quot;%s(): OBEX connect header: version=%#x, &amp;quot; \
&lt;br&gt;-			&amp;quot;flags=%#x, mtu=%d&amp;quot;, __func__, hdr-&amp;gt;version, hdr-&amp;gt;flags,
&lt;br&gt;-			ntohs(hdr-&amp;gt;mtu));
&lt;br&gt;+			&amp;quot;flags=%#x, mtu=%d&amp;quot;, __func__,
&lt;br&gt;+			((obex_connect_hdr_t *)data)-&amp;gt;version,
&lt;br&gt;+			((obex_connect_hdr_t *)data)-&amp;gt;flags,
&lt;br&gt;+			ntohs(((obex_connect_hdr_t *)data)-&amp;gt;mtu));
&lt;br&gt;&amp;nbsp;	else
&lt;br&gt;&amp;nbsp;		log_err(&amp;quot;%s(): Invalid OBEX connect header?!&amp;quot;, __func__);
&lt;br&gt;&lt;br&gt;@@ -1086,20 +1088,22 @@ obexapp_server_request_setpath(obex_t *h
&lt;br&gt;&amp;nbsp;		__unused int obex_rsp)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	context_p		 context = (context_p) OBEX_GetUserData(handle);
&lt;br&gt;-	obex_setpath_hdr_t	*hdr = NULL;
&lt;br&gt;&amp;nbsp;	obex_headerdata_t	 hv;
&lt;br&gt;&amp;nbsp;	uint8_t			 hi;
&lt;br&gt;&amp;nbsp;	uint32_t		 hlen;
&lt;br&gt;&amp;nbsp;	int			 got_name = 0;
&lt;br&gt;+	uint8_t			*data = NULL;
&lt;br&gt;+	uint8_t			 flags = 0;
&lt;br&gt;&lt;br&gt;&amp;nbsp;	log_debug(&amp;quot;%s()&amp;quot;, __func__);
&lt;br&gt;&lt;br&gt;&amp;nbsp;	context-&amp;gt;file[0] = '\0';
&lt;br&gt;&lt;br&gt;-	if (OBEX_ObjectGetNonHdrData(object, (uint8_t **) &amp;hdr) == sizeof(*hdr))
&lt;br&gt;+	if (OBEX_ObjectGetNonHdrData(object, &amp;data) == sizeof(obex_setpath_hdr_t)) {
&lt;br&gt;+		flags = ((obex_setpath_hdr_t *)data)-&amp;gt;flags;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;log_debug(&amp;quot;%s(): OBEX setpath header: flags=%#x, constants=%d&amp;quot;,
&lt;br&gt;-			__func__, hdr-&amp;gt;flags, hdr-&amp;gt;constants);
&lt;br&gt;-	else
&lt;br&gt;+			__func__, flags, ((obex_setpath_hdr_t *)data)-&amp;gt;constants);
&lt;br&gt;+	} else
&lt;br&gt;&amp;nbsp;		log_err(&amp;quot;%s(): Invalid OBEX setpath header?!&amp;quot;, __func__);
&lt;br&gt;&lt;br&gt;&amp;nbsp;	while (OBEX_ObjectGetNextHeader(handle, object, &amp;hi, &amp;hv, &amp;hlen)) {
&lt;br&gt;@@ -1145,15 +1149,14 @@ obexapp_server_request_setpath(obex_t *h
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&lt;br&gt;&amp;nbsp;	if (!got_name) {
&lt;br&gt;-
&lt;br&gt;&amp;nbsp;		/*
&lt;br&gt;&amp;nbsp;		 * No name and flags == 0x3 (back up one level + don't create
&lt;br&gt;&amp;nbsp;		 * directory) means &amp;quot;cd ..&amp;quot;. Everything else is forbidden.
&lt;br&gt;&amp;nbsp;		 */
&lt;br&gt;&lt;br&gt;-		if (hdr-&amp;gt;flags != 0x3) {
&lt;br&gt;+		if (flags != 0x3) {
&lt;br&gt;&amp;nbsp;			log_err(&amp;quot;%s(): Invalid flags for 'cd ..', flags=%#x&amp;quot;,
&lt;br&gt;-				__func__, hdr-&amp;gt;flags);
&lt;br&gt;+				__func__, flags);
&lt;br&gt;&lt;br&gt;&amp;nbsp;			return (OBEXAPP_PACK_RSP_CODES(OBEX_RSP_FORBIDDEN,
&lt;br&gt;&amp;nbsp;							OBEX_RSP_FORBIDDEN));
&lt;br&gt;@@ -1169,9 +1172,9 @@ obexapp_server_request_setpath(obex_t *h
&lt;br&gt;&amp;nbsp;		 * 'cd /'. Everything else is forbidden
&lt;br&gt;&amp;nbsp;		 */
&lt;br&gt;&lt;br&gt;-		if (hdr-&amp;gt;flags != 0x2) {
&lt;br&gt;+		if (flags != 0x2) {
&lt;br&gt;&amp;nbsp;			log_err(&amp;quot;%s(): Invalid flags for 'cd /', flags=%#x&amp;quot;,
&lt;br&gt;-				__func__, hdr-&amp;gt;flags);
&lt;br&gt;+				__func__, flags);
&lt;br&gt;&lt;br&gt;&amp;nbsp;			return (OBEXAPP_PACK_RSP_CODES(OBEX_RSP_FORBIDDEN,
&lt;br&gt;&amp;nbsp;							OBEX_RSP_FORBIDDEN));
&lt;br&gt;@@ -1180,7 +1183,7 @@ obexapp_server_request_setpath(obex_t *h
&lt;br&gt;&amp;nbsp;		strlcpy(context-&amp;gt;file, context-&amp;gt;root, PATH_MAX);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&lt;br&gt;-	if (hdr-&amp;gt;flags == 0) {
&lt;br&gt;+	if (flags == 0) {
&lt;br&gt;&amp;nbsp;		if (mkdir(context-&amp;gt;file, 0755) &amp;lt; 0 &amp;&amp; errno != EEXIST) {
&lt;br&gt;&amp;nbsp;			log_err(&amp;quot;%s(): mkdir(%s) failed. %s (%d)&amp;quot;,
&lt;br&gt;&amp;nbsp;				__func__, context-&amp;gt;file,
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26597692&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26597692&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/patch-to-make-obexapp-work-with-BSD-iconv%283%29-tp26590898p26597692.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26597431</id>
	<title>Re: patch to make obexapp work with BSD iconv(3)</title>
	<published>2009-12-01T11:15:40Z</published>
	<updated>2009-12-01T11:15:40Z</updated>
	<author>
		<name>Iain Hibbert</name>
	</author>
	<content type="html">On Tue, 1 Dec 2009, Matthias Drochner wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;iconv_open(3), this is more robust than trying to interpret
&lt;br&gt;&amp;gt; &amp;nbsp;the locale string
&lt;br&gt;&lt;br&gt;btw nl_langinfo(3) is defined to always return a valid pointer, so the
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (locale == NULL)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (-1);
&lt;br&gt;&lt;br&gt;is not required..
&lt;br&gt;&lt;br&gt;also, the locale variable can be private to obexapp_util_locale_init() as
&lt;br&gt;it is not used elsewhere
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;iain
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26597431&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26597431&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/patch-to-make-obexapp-work-with-BSD-iconv%283%29-tp26590898p26597431.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26596734</id>
	<title>Re: patch to make obexapp work with BSD iconv(3)</title>
	<published>2009-12-01T10:28:40Z</published>
	<updated>2009-12-01T10:28:40Z</updated>
	<author>
		<name>Maksim Yevmenkin-2</name>
	</author>
	<content type="html">Matthias,
&lt;br&gt;&lt;br&gt;&amp;gt; Here is a patch which removes the GNU iconv dependency from obexapp.
&lt;br&gt;&amp;gt; I've successfully tested it by sending vcards with strange names;
&lt;br&gt;&amp;gt; the resulting files were identical.
&lt;br&gt;&lt;br&gt;thanks for the patch!
&lt;br&gt;&lt;br&gt;could you please tell me which bsd flavor you tested this on?
&lt;br&gt;&lt;br&gt;&amp;gt; The relevant changes are:
&lt;br&gt;&amp;gt; -just use the result of nl_langinfo(CODESET) as input of
&lt;br&gt;&amp;gt; &amp;nbsp;iconv_open(3), this is more robust than trying to interpret
&lt;br&gt;&amp;gt; &amp;nbsp;the locale string
&lt;br&gt;&amp;gt; -remove iconvctl(ICONV_SET_DISCARD_ILSEQ) -- BSD doesn't
&lt;br&gt;&amp;gt; &amp;nbsp;have this and it should be unneeded because it only
&lt;br&gt;&amp;gt; &amp;nbsp;compensates for some non-standard behaviour of GNU iconv.
&lt;br&gt;&amp;gt; (The bsdxml-&amp;gt;expat part is unrelated.)
&lt;br&gt;&lt;br&gt;i dont really have any objections to those, just wanted to get some
&lt;br&gt;clarification.
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;max
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596734&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596734&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/patch-to-make-obexapp-work-with-BSD-iconv%283%29-tp26590898p26596734.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26591248</id>
	<title>Re: patch to make obexapp work with BSD iconv(3)</title>
	<published>2009-12-01T04:52:39Z</published>
	<updated>2009-12-01T04:52:39Z</updated>
	<author>
		<name>Matthias Drochner</name>
	</author>
	<content type="html">&lt;br&gt;On Tue, 1 Dec 2009 12:50:54 +0100
&lt;br&gt;Matthias Drochner &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26591248&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;m.drochner@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Here is a patch
&lt;br&gt;&lt;br&gt;Oops, this time for real.
&lt;br&gt;best regards
&lt;br&gt;Matthias
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26591248&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26591248&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;patch-ac&lt;/strong&gt; (2K) &lt;a href=&quot;http://old.nabble.com/attachment/26591248/0/patch-ac&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/patch-to-make-obexapp-work-with-BSD-iconv%283%29-tp26590898p26591248.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26590898</id>
	<title>patch to make obexapp work with BSD iconv(3)</title>
	<published>2009-12-01T03:50:54Z</published>
	<updated>2009-12-01T03:50:54Z</updated>
	<author>
		<name>Matthias Drochner</name>
	</author>
	<content type="html">&lt;br&gt;Here is a patch which removes the GNU iconv dependency from obexapp.
&lt;br&gt;I've successfully tested it by sending vcards with strange names;
&lt;br&gt;the resulting files were identical.
&lt;br&gt;The relevant changes are:
&lt;br&gt;-just use the result of nl_langinfo(CODESET) as input of
&lt;br&gt;&amp;nbsp;iconv_open(3), this is more robust than trying to interpret
&lt;br&gt;&amp;nbsp;the locale string
&lt;br&gt;-remove iconvctl(ICONV_SET_DISCARD_ILSEQ) -- BSD doesn't
&lt;br&gt;&amp;nbsp;have this and it should be unneeded because it only
&lt;br&gt;&amp;nbsp;compensates for some non-standard behaviour of GNU iconv.
&lt;br&gt;(The bsdxml-&amp;gt;expat part is unrelated.)
&lt;br&gt;&lt;br&gt;best regards
&lt;br&gt;Matthias
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26590898&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26590898&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/patch-to-make-obexapp-work-with-BSD-iconv%283%29-tp26590898p26590898.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26474995</id>
	<title>Re: Problems getting the bluetooth stack to start</title>
	<published>2009-11-23T01:38:58Z</published>
	<updated>2009-11-23T01:38:58Z</updated>
	<author>
		<name>John .</name>
	</author>
	<content type="html">On Sun, Nov 22, 2009 at 07:23:35PM -0800, Maksim Yevmenkin wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; this will not work. as per l2control(8) man page
&lt;br&gt;&lt;br&gt;oops! sorry for the noise.
&lt;br&gt;&lt;br&gt;&amp;gt; well, it could not open /dev/ptyp6? is it busy? did you try different terminal?
&lt;br&gt;&lt;br&gt;yep, got i/o error with them all. 
&lt;br&gt;&lt;br&gt;&amp;gt; l2control(8) is not an issue you. rfcomm_sppd(1) had problem with
&lt;br&gt;&amp;gt; opening master pty.
&lt;br&gt;&lt;br&gt;I'm going to update and buildworld again, and remake all my devices. I
&lt;br&gt;saw some odd ownership for /dev/ttyp6 and friends.
&lt;br&gt;&lt;br&gt;cheers
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;John - comp dot john at googlemail dot com
&lt;br&gt;OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop
&lt;br&gt;GPG: 0xF08A33C5
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26474995&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26474995&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-getting-the-bluetooth-stack-to-start-tp26459376p26474995.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26474863</id>
	<title>Re: Problems getting the bluetooth stack to start</title>
	<published>2009-11-23T01:26:59Z</published>
	<updated>2009-11-23T01:26:59Z</updated>
	<author>
		<name>John .</name>
	</author>
	<content type="html">On Mon, Nov 23, 2009 at 08:40:05AM +0000, Iain Hibbert wrote:
&lt;br&gt;&amp;gt; On Mon, 23 Nov 2009, John wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Then I pulled the dongle from the socket on the back and
&lt;br&gt;&amp;gt; &amp;gt; plugged it into one at the front, and this showed more promise.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; perhaps the one at the back is EHCI but the one at the front is not (or,
&lt;br&gt;&amp;gt; full-speed and high-speed or whatever they call it) since you had to
&lt;br&gt;&amp;gt; disable ehci to get it working..?
&lt;br&gt;&lt;br&gt;No, I recompiled without EHCI on the basis that there were issues with
&lt;br&gt;it enabled (I did a lot of googling before posting here, and it was
&lt;br&gt;advice though I think it pertained to netbsd and some other specific
&lt;br&gt;advice) but at that stage I was grasping at straws ;)
&lt;br&gt;-- 
&lt;br&gt;John - comp dot john at googlemail dot com
&lt;br&gt;OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop
&lt;br&gt;GPG: 0xF08A33C5
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26474863&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26474863&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-getting-the-bluetooth-stack-to-start-tp26459376p26474863.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26474323</id>
	<title>Re: Problems getting the bluetooth stack to start</title>
	<published>2009-11-23T00:39:59Z</published>
	<updated>2009-11-23T00:39:59Z</updated>
	<author>
		<name>Iain Hibbert</name>
	</author>
	<content type="html">On Mon, 23 Nov 2009, John wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Then I pulled the dongle from the socket on the back and
&lt;br&gt;&amp;gt; plugged it into one at the front, and this showed more promise.
&lt;br&gt;&lt;br&gt;perhaps the one at the back is EHCI but the one at the front is not (or,
&lt;br&gt;full-speed and high-speed or whatever they call it) since you had to
&lt;br&gt;disable ehci to get it working..?
&lt;br&gt;&lt;br&gt;iain
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26474323&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26474323&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-getting-the-bluetooth-stack-to-start-tp26459376p26474323.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26472278</id>
	<title>Re: Problems getting the bluetooth stack to start</title>
	<published>2009-11-22T19:23:35Z</published>
	<updated>2009-11-22T19:23:35Z</updated>
	<author>
		<name>Maksim Yevmenkin-2</name>
	</author>
	<content type="html">On Sun, Nov 22, 2009 at 5:49 PM, John &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472278&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;comp.john@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;[...]
&lt;br&gt;&lt;br&gt;everything up to this point looks good
&lt;br&gt;&lt;br&gt;&amp;gt; What I can't work out now is why i can't see the channels:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; potato# l2ping -a 00:0a:d9:3e:70:24
&lt;br&gt;&amp;gt; 0 bytes from 00:0a:d9:3e:70:24 seq_no=0 time=500.567 ms result=0
&lt;br&gt;&amp;gt; 0 bytes from 00:0a:d9:3e:70:24 seq_no=1 time=31.890 ms result=0
&lt;br&gt;&amp;gt; 0 bytes from 00:0a:d9:3e:70:24 seq_no=2 time=31.895 ms result=0
&lt;br&gt;&amp;gt; 0 bytes from 00:0a:d9:3e:70:24 seq_no=3 time=31.897 ms result=0
&lt;br&gt;&amp;gt; 0 bytes from 00:0a:d9:3e:70:24 seq_no=4 time=32.900 ms result=0
&lt;br&gt;&amp;gt; 0 bytes from 00:0a:d9:3e:70:24 seq_no=5 time=30.906 ms result=0
&lt;br&gt;&lt;br&gt;this looks fine
&lt;br&gt;&lt;br&gt;&amp;gt; potato# l2control -a 00:0a:d9:3e:70:24 Read_Channel_List
&lt;br&gt;&amp;gt; l2control: Could not bind socket, bdaddr=00:0a:d9:3e:70:24: Network is
&lt;br&gt;&amp;gt; down
&lt;br&gt;&lt;br&gt;this will not work. as per l2control(8) man page
&lt;br&gt;&lt;br&gt;&amp;quot;
&lt;br&gt;The l2control utility connects to the local device with the specified
&lt;br&gt;BD_ADDR and attempts to send the specified command.
&lt;br&gt;&amp;quot;
&lt;br&gt;&lt;br&gt;i.e. l2control(8) will display _local_ l2cap channels (basically l2cap
&lt;br&gt;connections). you dont have any l2cap channels (i.e. connections).
&lt;br&gt;&lt;br&gt;i'm guessing you want to see the services offered on your t610 phone.
&lt;br&gt;you need to use sdpcontrol(8) for this.
&lt;br&gt;&lt;br&gt;&amp;gt; I have paired the handset with the device and it shows the fqdn of the
&lt;br&gt;&amp;gt; freebsd machine. If I do sdpcontrol -a 00:0a:d9:3e:70:24 browse I get
&lt;br&gt;&amp;gt; pages of output.
&lt;br&gt;&lt;br&gt;yes, this will tell you service names and service parameters
&lt;br&gt;&lt;br&gt;&amp;gt; But! If I do rfcomm_sppd -a 00:0a:d9:3e:70:24 -t /dev/ttyp6 I see this
&lt;br&gt;&amp;gt; in messages:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Nov 23 01:38:24 potato rfcomm_sppd: Could not open(/dev/ptyp6).
&lt;br&gt;&amp;gt; Input/output error
&lt;br&gt;&lt;br&gt;well, it could not open /dev/ptyp6? is it busy? did you try different terminal?
&lt;br&gt;&lt;br&gt;&amp;gt; any ideas? I think the l2control error and the rfcomm one may be
&lt;br&gt;&amp;gt; related, but I haven't a clue how to resolve the issue.
&lt;br&gt;&lt;br&gt;l2control(8) is not an issue you. rfcomm_sppd(1) had problem with
&lt;br&gt;opening master pty.
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;max
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472278&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472278&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-getting-the-bluetooth-stack-to-start-tp26459376p26472278.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26471647</id>
	<title>Re: Problems getting the bluetooth stack to start</title>
	<published>2009-11-22T17:49:16Z</published>
	<updated>2009-11-22T17:49:16Z</updated>
	<author>
		<name>John .</name>
	</author>
	<content type="html">Hi, thanks for replying.
&lt;br&gt;&lt;br&gt;On Sun, Nov 22, 2009 at 09:45:25AM +0000, Iain Hibbert wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sat, 21 Nov 2009, John wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Firstly, the small size of the device means that it is very awkward to
&lt;br&gt;&amp;gt; &amp;gt; pull the dongle out once it's pushed in. When restarting the computer,
&lt;br&gt;&amp;gt; &amp;gt; is it sufficient to reboot(8) then power the machine off, wait a few
&lt;br&gt;&amp;gt; &amp;gt; seconds then power it back up? I mean does this properly reset the
&lt;br&gt;&amp;gt; &amp;gt; dongle, or does it truly have to be pulled out and pushed back in for
&lt;br&gt;&amp;gt; &amp;gt; the system to re-read it?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; power down should be sufficient to reset the device entirely, internal
&lt;br&gt;&amp;gt; state is rarely kept (sometimes there is nvram for link keys but thats
&lt;br&gt;&amp;gt; all)
&lt;/div&gt;&lt;br&gt;Yeah I thought it should be, but it seems that is not the case on my
&lt;br&gt;hardware. (gigabyte motherboard &amp; case, AMD Athalon 64 x2 6000+). Whilst
&lt;br&gt;trying to fix things, I brought the OS up-to-date with 7-STABLE (I was
&lt;br&gt;running 7.2-R p4) and went through mergemaster the long and hard way,
&lt;br&gt;making sure all the bluetooth-related stuff was the newest. Rebooted,
&lt;br&gt;still no joy. Then I pulled the dongle from the socket on the back and
&lt;br&gt;plugged it into one at the front, and this showed more promise. ubt0
&lt;br&gt;didn't appear in messages before, now it did. Seems it needs to be
&lt;br&gt;unplugged then plugged back in. Additionally, I had to go through the
&lt;br&gt;routine of stopping the bluetooth stack, starting it again, getting the
&lt;br&gt;&amp;quot;Unable to setup Bluetooth stack for device ubt0&amp;quot; error, then starting
&lt;br&gt;it again and getting no error.
&lt;br&gt;&lt;br&gt;Now I get:
&lt;br&gt;&lt;br&gt;potato# kldstat 
&lt;br&gt;Id Refs Address &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp; &amp;nbsp; Name
&lt;br&gt;&amp;nbsp;1 &amp;nbsp; 14 0xffffffff80100000 bf99e0 &amp;nbsp; kernel
&lt;br&gt;&amp;nbsp;2 &amp;nbsp; &amp;nbsp;1 0xffffffff80cfa000 7118 &amp;nbsp; &amp;nbsp; geom_concat.ko
&lt;br&gt;&amp;nbsp;3 &amp;nbsp; &amp;nbsp;1 0xffffffff80d02000 9808 &amp;nbsp; &amp;nbsp; ng_ubt.ko
&lt;br&gt;&amp;nbsp;4 &amp;nbsp; &amp;nbsp;6 0xffffffff80d0c000 14e98 &amp;nbsp; &amp;nbsp;netgraph.ko
&lt;br&gt;&amp;nbsp;5 &amp;nbsp; &amp;nbsp;1 0xffffffff80e22000 972 &amp;nbsp; &amp;nbsp; &amp;nbsp;pflog.ko
&lt;br&gt;&amp;nbsp;6 &amp;nbsp; &amp;nbsp;1 0xffffffff80e23000 2aefc &amp;nbsp; &amp;nbsp;pf.ko
&lt;br&gt;&amp;nbsp;7 &amp;nbsp; &amp;nbsp;1 0xffffffff80e4e000 12c9e &amp;nbsp; &amp;nbsp;ng_btsocket.ko
&lt;br&gt;&amp;nbsp;8 &amp;nbsp; &amp;nbsp;3 0xffffffff80e61000 89a &amp;nbsp; &amp;nbsp; &amp;nbsp;ng_bluetooth.ko
&lt;br&gt;&amp;nbsp;9 &amp;nbsp; &amp;nbsp;1 0xffffffff80e62000 aa7a &amp;nbsp; &amp;nbsp; fuse.ko
&lt;br&gt;&amp;nbsp;10 &amp;nbsp; 1 0xffffffff80e6d000 827 &amp;nbsp; &amp;nbsp; &amp;nbsp;accf_http.ko
&lt;br&gt;&amp;nbsp;11 &amp;nbsp; 1 0xffffffff80e6e000 8b1a &amp;nbsp; &amp;nbsp; ng_hci.ko
&lt;br&gt;&amp;nbsp;12 &amp;nbsp; 1 0xffffffff80e77000 b498 &amp;nbsp; &amp;nbsp; ng_l2cap.ko
&lt;br&gt;&amp;nbsp;13 &amp;nbsp; 1 0xffffffff80e83000 19ba &amp;nbsp; &amp;nbsp; ng_socket.ko
&lt;br&gt;&lt;br&gt;and
&lt;br&gt;&lt;br&gt;potato# ngctl li
&lt;br&gt;There are 7 total nodes:
&lt;br&gt;Name: btsock_l2c_raw &amp;nbsp;Type: btsock_l2c_raw &amp;nbsp;ID: 00000002 &amp;nbsp; Num hooks: 1
&lt;br&gt;Name: ngctl23568 &amp;nbsp; &amp;nbsp; &amp;nbsp;Type: socket &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ID: 00000063 &amp;nbsp; Num hooks: 0
&lt;br&gt;Name: ubt0hci &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type: hci &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID: 00000059 &amp;nbsp; Num hooks: 3
&lt;br&gt;Name: btsock_hci_raw &amp;nbsp;Type: btsock_hci_raw &amp;nbsp;ID: 00000001 &amp;nbsp; Num hooks: 1
&lt;br&gt;Name: ubt0l2cap &amp;nbsp; &amp;nbsp; &amp;nbsp; Type: l2cap &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID: 0000005d &amp;nbsp; Num hooks: 3
&lt;br&gt;Name: btsock_l2c &amp;nbsp; &amp;nbsp; &amp;nbsp;Type: btsock_l2c &amp;nbsp; &amp;nbsp; &amp;nbsp;ID: 00000003 &amp;nbsp; Num hooks: 1
&lt;br&gt;Name: ubt0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Type: ubt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID: 00000004 &amp;nbsp; Num hooks: 1
&lt;br&gt;&lt;br&gt;so that looks OK
&lt;br&gt;&lt;br&gt;potato# hccontrol -n ubt0hci inquiry
&lt;br&gt;Inquiry result, num_responses=1
&lt;br&gt;Inquiry result #0
&lt;br&gt;BD_ADDR: 00:0a:d9:3e:70:24
&lt;br&gt;Page Scan Rep. Mode: 0x1
&lt;br&gt;Page Scan Period Mode: 00
&lt;br&gt;Page Scan Mode: 00
&lt;br&gt;Class: 52:02:04
&lt;br&gt;Clock offset: 0x273b
&lt;br&gt;Inquiry complete.
&lt;br&gt;Status: No error [00]
&lt;br&gt;&lt;br&gt;potato# hccontrol -n ubt0hci remote_name_request 00:0a:d9:3e:70:24
&lt;br&gt;BD_ADDR: 00:0a:d9:3e:70:24
&lt;br&gt;Name: T610
&lt;br&gt;&lt;br&gt;so, in the parlance of the literature, the phone is my server and this
&lt;br&gt;is the server's MAC address: 00:0a:d9:3e:70:24 
&lt;br&gt;&lt;br&gt;What I can't work out now is why i can't see the channels:
&lt;br&gt;&lt;br&gt;potato# l2ping -a 00:0a:d9:3e:70:24
&lt;br&gt;0 bytes from 00:0a:d9:3e:70:24 seq_no=0 time=500.567 ms result=0 
&lt;br&gt;0 bytes from 00:0a:d9:3e:70:24 seq_no=1 time=31.890 ms result=0 
&lt;br&gt;0 bytes from 00:0a:d9:3e:70:24 seq_no=2 time=31.895 ms result=0 
&lt;br&gt;0 bytes from 00:0a:d9:3e:70:24 seq_no=3 time=31.897 ms result=0 
&lt;br&gt;0 bytes from 00:0a:d9:3e:70:24 seq_no=4 time=32.900 ms result=0 
&lt;br&gt;0 bytes from 00:0a:d9:3e:70:24 seq_no=5 time=30.906 ms result=0 
&lt;br&gt;^C
&lt;br&gt;potato# l2control -a 00:0a:d9:3e:70:24 Read_Channel_List
&lt;br&gt;l2control: Could not bind socket, bdaddr=00:0a:d9:3e:70:24: Network is
&lt;br&gt;down
&lt;br&gt;&lt;br&gt;I have paired the handset with the device and it shows the fqdn of the 
&lt;br&gt;freebsd machine. If I do sdpcontrol -a 00:0a:d9:3e:70:24 browse I get
&lt;br&gt;pages of output.
&lt;br&gt;&lt;br&gt;But! If I do rfcomm_sppd -a 00:0a:d9:3e:70:24 -t /dev/ttyp6 I see this
&lt;br&gt;in messages:
&lt;br&gt;&lt;br&gt;Nov 23 01:38:24 potato rfcomm_sppd: Could not open(/dev/ptyp6).
&lt;br&gt;Input/output error
&lt;br&gt;&lt;br&gt;any ideas? I think the l2control error and the rfcomm one may be
&lt;br&gt;related, but I haven't a clue how to resolve the issue.
&lt;br&gt;-- 
&lt;br&gt;John - comp dot john at googlemail dot com
&lt;br&gt;OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop
&lt;br&gt;GPG: 0xF08A33C5
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26471647&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26471647&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-getting-the-bluetooth-stack-to-start-tp26459376p26471647.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26468235</id>
	<title>Re: iPhone and bcm-2045b</title>
	<published>2009-11-22T10:52:55Z</published>
	<updated>2009-11-22T10:52:55Z</updated>
	<author>
		<name>Iain Hibbert</name>
	</author>
	<content type="html">On Mon, 16 Nov 2009, Iain Hibbert wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;A friend of mine just got an iPhone 3G, he was here the other day and I
&lt;br&gt;&amp;gt; tried to probe the device using my laptop (Thinkpad T60 with NetBSD) which
&lt;br&gt;&amp;gt; has bluetooth built in (a Broadcom BCM2045B connected via internal USB)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I managed to discover it ok, but when I opened a connection to the device,
&lt;br&gt;&amp;gt; my controller detached from the USB bus!
&lt;br&gt;&lt;br&gt;Just as a followup to this, my CSR dongle managed to connect just fine so
&lt;br&gt;I guess the Broadcom controller has a bug causing it to crash. Output of
&lt;br&gt;my SDP query tool below. (searched for L2CAP uuid)
&lt;br&gt;&lt;br&gt;The iPhone bluetooth capability is kind of limited for a phone though,
&lt;br&gt;with no Object Push or File Transfer. The NAP service is advertised but
&lt;br&gt;returns &amp;quot;Not Allowed&amp;quot; to connection setup attempts (supposedly its
&lt;br&gt;disabled by the network operator).
&lt;br&gt;&lt;br&gt;iain
&lt;br&gt;&lt;br&gt;&lt;br&gt;ServiceRecordHandle: 0x4f491116
&lt;br&gt;ServiceClassIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Network Access Point
&lt;br&gt;ServiceRecordState: 0x00000000
&lt;br&gt;ProtocolDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; L2CAP (PSM 0x000f)
&lt;br&gt;&amp;nbsp; &amp;nbsp; BNEP (v1.0; IPv4, ARP, 0x8100, IPv6)
&lt;br&gt;BrowseGroupList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Public Browse Root
&lt;br&gt;LanguageBaseAttributeIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; en.UTF-8 base 0x0100
&lt;br&gt;&amp;nbsp; &amp;nbsp; fr.UTF-8 base 0x0110
&lt;br&gt;&amp;nbsp; &amp;nbsp; de.UTF-8 base 0x0120
&lt;br&gt;&amp;nbsp; &amp;nbsp; ja.UTF-8 base 0x0130
&lt;br&gt;ServiceAvailability: 255/255
&lt;br&gt;BluetoothProfileDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Network Access Point, v1.0
&lt;br&gt;ServiceName: &amp;quot;PAN Network Access Profile&amp;quot;
&lt;br&gt;ServiceDescription: &amp;quot;Network Access Point&amp;quot;
&lt;br&gt;SecurityDescription: Service-level Security
&lt;br&gt;NetAccessType: 3G Cellular
&lt;br&gt;MaxNetAccessRate: 256000
&lt;br&gt;&lt;br&gt;&lt;br&gt;ServiceRecordHandle: 0x4f49a620
&lt;br&gt;ServiceClassIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; 00000000-deca-fade-deca-deafdecacafe
&lt;br&gt;ServiceRecordState: 0x00000000
&lt;br&gt;ProtocolDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; L2CAP
&lt;br&gt;&amp;nbsp; &amp;nbsp; RFCOMM (channel 2)
&lt;br&gt;BrowseGroupList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Public Browse Root
&lt;br&gt;LanguageBaseAttributeIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; en.UTF-8 base 0x0100
&lt;br&gt;&amp;nbsp; &amp;nbsp; fr.UTF-8 base 0x0110
&lt;br&gt;&amp;nbsp; &amp;nbsp; de.UTF-8 base 0x0120
&lt;br&gt;&amp;nbsp; &amp;nbsp; ja.UTF-8 base 0x0130
&lt;br&gt;ServiceAvailability: 255/255
&lt;br&gt;BluetoothProfileDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Serial Port, v1.0
&lt;br&gt;ServiceName: &amp;quot;Wireless iAP&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;br&gt;ServiceRecordHandle: 0x4f49110c
&lt;br&gt;ServiceClassIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; A/V Remote Control Target
&lt;br&gt;ServiceRecordState: 0x00000000
&lt;br&gt;ProtocolDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; L2CAP (PSM 0x0017)
&lt;br&gt;&amp;nbsp; &amp;nbsp; AVCTP (v1.2)
&lt;br&gt;BrowseGroupList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Public Browse Root
&lt;br&gt;LanguageBaseAttributeIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; en.UTF-8 base 0x0100
&lt;br&gt;&amp;nbsp; &amp;nbsp; fr.UTF-8 base 0x0110
&lt;br&gt;&amp;nbsp; &amp;nbsp; de.UTF-8 base 0x0120
&lt;br&gt;&amp;nbsp; &amp;nbsp; ja.UTF-8 base 0x0130
&lt;br&gt;ServiceAvailability: 255/255
&lt;br&gt;BluetoothProfileDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; A/V Remote Control, v1.0
&lt;br&gt;ServiceName: &amp;quot;AVRCP Device&amp;quot;
&lt;br&gt;ServiceDescription: &amp;quot;Remote Control Device&amp;quot;
&lt;br&gt;SupportedFeatures:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Category 1
&lt;br&gt;&lt;br&gt;&lt;br&gt;ServiceRecordHandle: 0x4f49110a
&lt;br&gt;ServiceClassIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Audio Source
&lt;br&gt;ServiceRecordState: 0x00000000
&lt;br&gt;ProtocolDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; L2CAP (PSM 0x0019)
&lt;br&gt;&amp;nbsp; &amp;nbsp; AVDTP (v1.2)
&lt;br&gt;BrowseGroupList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Public Browse Root
&lt;br&gt;LanguageBaseAttributeIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; en.UTF-8 base 0x0100
&lt;br&gt;&amp;nbsp; &amp;nbsp; fr.UTF-8 base 0x0110
&lt;br&gt;&amp;nbsp; &amp;nbsp; de.UTF-8 base 0x0120
&lt;br&gt;&amp;nbsp; &amp;nbsp; ja.UTF-8 base 0x0130
&lt;br&gt;ServiceAvailability: 255/255
&lt;br&gt;BluetoothProfileDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Advanced Audio Distribution, v1.2
&lt;br&gt;ServiceName: &amp;quot;Audio Source&amp;quot;
&lt;br&gt;SupportedFeatures:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Player
&lt;br&gt;&lt;br&gt;&lt;br&gt;ServiceRecordHandle: 0x4f49112f
&lt;br&gt;ServiceClassIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Phonebook Access Server
&lt;br&gt;ServiceRecordState: 0x00000000
&lt;br&gt;ProtocolDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; L2CAP
&lt;br&gt;&amp;nbsp; &amp;nbsp; RFCOMM (channel 13)
&lt;br&gt;&amp;nbsp; &amp;nbsp; OBEX
&lt;br&gt;BrowseGroupList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Public Browse Root
&lt;br&gt;LanguageBaseAttributeIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; en.UTF-8 base 0x0100
&lt;br&gt;&amp;nbsp; &amp;nbsp; fr.UTF-8 base 0x0110
&lt;br&gt;&amp;nbsp; &amp;nbsp; de.UTF-8 base 0x0120
&lt;br&gt;&amp;nbsp; &amp;nbsp; ja.UTF-8 base 0x0130
&lt;br&gt;ServiceAvailability: 255/255
&lt;br&gt;BluetoothProfileDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Phonebook Access, v1.0
&lt;br&gt;ServiceName: &amp;quot;Phonebook&amp;quot;
&lt;br&gt;SupportedRepositories:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Local Phonebook
&lt;br&gt;&lt;br&gt;&lt;br&gt;ServiceRecordHandle: 0x4f491104
&lt;br&gt;ServiceClassIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; IrMC Sync
&lt;br&gt;ServiceRecordState: 0x00000000
&lt;br&gt;ProtocolDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; L2CAP
&lt;br&gt;&amp;nbsp; &amp;nbsp; RFCOMM (channel 1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; OBEX
&lt;br&gt;BrowseGroupList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Public Browse Root
&lt;br&gt;LanguageBaseAttributeIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; en.UTF-8 base 0x0100
&lt;br&gt;&amp;nbsp; &amp;nbsp; fr.UTF-8 base 0x0110
&lt;br&gt;&amp;nbsp; &amp;nbsp; de.UTF-8 base 0x0120
&lt;br&gt;&amp;nbsp; &amp;nbsp; ja.UTF-8 base 0x0130
&lt;br&gt;ServiceAvailability: 255/255
&lt;br&gt;BluetoothProfileDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; IrMC Sync, v1.0
&lt;br&gt;ServiceName: &amp;quot;IrMC Sync&amp;quot;
&lt;br&gt;SupportedDataStoresList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Phonebook
&lt;br&gt;&lt;br&gt;&lt;br&gt;ServiceRecordHandle: 0x4f49111f
&lt;br&gt;ServiceClassIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Handsfree Audio Gateway
&lt;br&gt;&amp;nbsp; &amp;nbsp; Generic Audio
&lt;br&gt;ServiceRecordState: 0x00000000
&lt;br&gt;ProtocolDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; L2CAP
&lt;br&gt;&amp;nbsp; &amp;nbsp; RFCOMM (channel 8)
&lt;br&gt;BrowseGroupList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Public Browse Root
&lt;br&gt;LanguageBaseAttributeIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; en.UTF-8 base 0x0100
&lt;br&gt;&amp;nbsp; &amp;nbsp; fr.UTF-8 base 0x0110
&lt;br&gt;&amp;nbsp; &amp;nbsp; de.UTF-8 base 0x0120
&lt;br&gt;&amp;nbsp; &amp;nbsp; ja.UTF-8 base 0x0130
&lt;br&gt;ServiceAvailability: 255/255
&lt;br&gt;BluetoothProfileDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Handsfree, v1.5
&lt;br&gt;ServiceName: &amp;quot;Handsfree Gateway&amp;quot;
&lt;br&gt;Network: Ability to reject a call
&lt;br&gt;SupportedFeatures:
&lt;br&gt;&amp;nbsp; &amp;nbsp; 3 Way Calling
&lt;br&gt;&amp;nbsp; &amp;nbsp; Echo Cancellation/Noise Reduction
&lt;br&gt;&lt;br&gt;&lt;br&gt;ServiceRecordHandle: 0x00000000
&lt;br&gt;ServiceClassIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Service Discovery Server
&lt;br&gt;ServiceRecordState: 0x00000000
&lt;br&gt;ProtocolDescriptorList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; L2CAP
&lt;br&gt;&amp;nbsp; &amp;nbsp; SDP
&lt;br&gt;LanguageBaseAttributeIDList:
&lt;br&gt;&amp;nbsp; &amp;nbsp; en.UTF-8 base 0x0100
&lt;br&gt;&amp;nbsp; &amp;nbsp; fr.UTF-8 base 0x0110
&lt;br&gt;&amp;nbsp; &amp;nbsp; de.UTF-8 base 0x0120
&lt;br&gt;&amp;nbsp; &amp;nbsp; ja.UTF-8 base 0x0130
&lt;br&gt;ServiceAvailability: 255/255
&lt;br&gt;VersionNumberList: v1.0
&lt;br&gt;ServiceDatabaseState: 0x00000008
&lt;br&gt;AttributeID 0x0300:
&lt;br&gt;&amp;nbsp; &amp;nbsp; seq8(56)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;str8(3) &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;2.1&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;str8(49) &amp;nbsp; &amp;nbsp; &amp;quot;Copyright (c) 2007 Apple Inc. All rights rese ...
&lt;br&gt;AttributeID 0x0308:
&lt;br&gt;&amp;nbsp; &amp;nbsp; url8(13) &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;www%2eapple%2ecom&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26468235&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26468235&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/iPhone-and-bcm-2045b-tp26376407p26468235.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26463835</id>
	<title>Re: Problems getting the bluetooth stack to start</title>
	<published>2009-11-22T01:45:16Z</published>
	<updated>2009-11-22T01:45:16Z</updated>
	<author>
		<name>Iain Hibbert</name>
	</author>
	<content type="html">On Sat, 21 Nov 2009, John wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Firstly, the small size of the device means that it is very awkward to
&lt;br&gt;&amp;gt; pull the dongle out once it's pushed in. When restarting the computer,
&lt;br&gt;&amp;gt; is it sufficient to reboot(8) then power the machine off, wait a few
&lt;br&gt;&amp;gt; seconds then power it back up? I mean does this properly reset the
&lt;br&gt;&amp;gt; dongle, or does it truly have to be pulled out and pushed back in for
&lt;br&gt;&amp;gt; the system to re-read it?
&lt;br&gt;&lt;br&gt;power down should be sufficient to reset the device entirely, internal
&lt;br&gt;state is rarely kept (sometimes there is nvram for link keys but thats
&lt;br&gt;all)
&lt;br&gt;&lt;br&gt;it seems (to me) that your modules setup is ok, since the modules are
&lt;br&gt;loaded when you want them to be
&lt;br&gt;&lt;br&gt;&amp;gt; potato# /etc/rc.d/bluetooth start ubt0
&lt;br&gt;&amp;gt; /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device
&lt;br&gt;&amp;gt; ubt0
&lt;br&gt;&lt;br&gt;Not sure if I can really be of much assistance, does hccontrol show that
&lt;br&gt;the node is up and running?
&lt;br&gt;&lt;br&gt;Also, before you do this can you run hcidump as root user? &amp;nbsp;It might show
&lt;br&gt;something happening (or not)
&lt;br&gt;&lt;br&gt;Then, you could enable some kind of debugging in the startup script (use
&lt;br&gt;sh -x at least) to see where it was failing
&lt;br&gt;&lt;br&gt;iain
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463835&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463835&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-getting-the-bluetooth-stack-to-start-tp26459376p26463835.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26459376</id>
	<title>Problems getting the bluetooth stack to start</title>
	<published>2009-11-21T10:43:36Z</published>
	<updated>2009-11-21T10:43:36Z</updated>
	<author>
		<name>John .</name>
	</author>
	<content type="html">Hello list,
&lt;br&gt;&lt;br&gt;my system:
&lt;br&gt;7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #1: Sat Nov 21 16:55:14 GMT 2009
&lt;br&gt;root@potato:/usr/src/sys/amd64/compile/POTATO &amp;nbsp;amd64
&lt;br&gt;&lt;br&gt;The kernel is generic apart from ehci being commented out. Sources
&lt;br&gt;cvsupped earlier today from cvsup.uk.freebsd.org
&lt;br&gt;&lt;br&gt;I'm trying to get my sony erikson T610 to work with a nexus bluemicro
&lt;br&gt;pro dongle on 7.2-R. The galling thing is, I got it to work once, but it
&lt;br&gt;was late and I forgot how. I can't get the bluetooth stack to start, and
&lt;br&gt;I'm following the instructins as per the handbook
&lt;br&gt;&lt;br&gt;Firstly, the small size of the device means that it is very awkward to
&lt;br&gt;pull the dongle out once it's pushed in. When restarting the computer,
&lt;br&gt;is it sufficient to reboot(8) then power the machine off, wait a few
&lt;br&gt;seconds then power it back up? I mean does this properly reset the
&lt;br&gt;dongle, or does it truly have to be pulled out and pushed back in for
&lt;br&gt;the system to re-read it?
&lt;br&gt;&lt;br&gt;I've tried various suggestions while googling trying to find the answer.
&lt;br&gt;One suggestion (with a different device) was to disable ehci and
&lt;br&gt;recompile the kernel, which I've done. No difference. Another was to 
&lt;br&gt;stop the bluetooth script before starting it:
&lt;br&gt;&lt;br&gt;potato# /etc/rc.d/bluetooth start ubt0
&lt;br&gt;/etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device
&lt;br&gt;ubt0
&lt;br&gt;potato# /etc/rc.d/bluetooth stop ubt0
&lt;br&gt;potato# /etc/rc.d/bluetooth start ubt0
&lt;br&gt;/etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device
&lt;br&gt;ubt0
&lt;br&gt;&lt;br&gt;I find that when the system boots up, only one bluetooth-related kernel module is loaded:
&lt;br&gt;&lt;br&gt;potato# kldstat
&lt;br&gt;Id Refs Address &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp; &amp;nbsp; Name
&lt;br&gt;&amp;nbsp;1 &amp;nbsp; &amp;nbsp;9 0xffffffff80100000 768b98 &amp;nbsp; kernel
&lt;br&gt;&amp;nbsp;2 &amp;nbsp; &amp;nbsp;1 0xffffffff80869000 7128 &amp;nbsp; &amp;nbsp; geom_concat.ko
&lt;br&gt;&amp;nbsp;3 &amp;nbsp; &amp;nbsp;1 0xffffffff80871000 9808 &amp;nbsp; &amp;nbsp; ng_ubt.ko
&lt;br&gt;&amp;nbsp;4 &amp;nbsp; &amp;nbsp;2 0xffffffff8087b000 14e08 &amp;nbsp; &amp;nbsp;netgraph.ko
&lt;br&gt;&amp;nbsp;5 &amp;nbsp; &amp;nbsp;1 0xffffffff80a22000 978 &amp;nbsp; &amp;nbsp; &amp;nbsp;pflog.ko
&lt;br&gt;&amp;nbsp;6 &amp;nbsp; &amp;nbsp;1 0xffffffff80a23000 2ae8c &amp;nbsp; &amp;nbsp;pf.ko
&lt;br&gt;&amp;nbsp;7 &amp;nbsp; &amp;nbsp;1 0xffffffff80a4e000 aa7a &amp;nbsp; &amp;nbsp; fuse.ko
&lt;br&gt;&amp;nbsp;8 &amp;nbsp; &amp;nbsp;1 0xffffffff80a59000 82e &amp;nbsp; &amp;nbsp; &amp;nbsp;accf_http.ko
&lt;br&gt;&lt;br&gt;potato# ngctl li
&lt;br&gt;There are 1 total nodes:
&lt;br&gt;Name: ngctl1196 &amp;nbsp; &amp;nbsp; &amp;nbsp; Type: socket &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ID: 00000001 &amp;nbsp; Num hooks:0
&lt;br&gt;&lt;br&gt;When I try to start the stack, this happens:
&lt;br&gt;&lt;br&gt;potato# /etc/rc.d/bluetooth start ubt0
&lt;br&gt;/etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device
&lt;br&gt;ubt0
&lt;br&gt;potato# /etc/rc.d/bluetooth stop ubt0
&lt;br&gt;potato# /etc/rc.d/bluetooth start ubt0
&lt;br&gt;/etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device
&lt;br&gt;ubt0
&lt;br&gt;&lt;br&gt;let's do a kldstat again:
&lt;br&gt;&lt;br&gt;potato# kldstat
&lt;br&gt;Id Refs Address &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp; &amp;nbsp; Name
&lt;br&gt;&amp;nbsp;1 &amp;nbsp; 14 0xffffffff80100000 768b98 &amp;nbsp; kernel
&lt;br&gt;&amp;nbsp;2 &amp;nbsp; &amp;nbsp;1 0xffffffff80869000 7128 &amp;nbsp; &amp;nbsp; geom_concat.ko
&lt;br&gt;&amp;nbsp;3 &amp;nbsp; &amp;nbsp;1 0xffffffff80871000 9808 &amp;nbsp; &amp;nbsp; ng_ubt.ko
&lt;br&gt;&amp;nbsp;4 &amp;nbsp; &amp;nbsp;6 0xffffffff8087b000 14e08 &amp;nbsp; &amp;nbsp;netgraph.ko
&lt;br&gt;&amp;nbsp;5 &amp;nbsp; &amp;nbsp;1 0xffffffff80a22000 978 &amp;nbsp; &amp;nbsp; &amp;nbsp;pflog.ko
&lt;br&gt;&amp;nbsp;6 &amp;nbsp; &amp;nbsp;1 0xffffffff80a23000 2ae8c &amp;nbsp; &amp;nbsp;pf.ko
&lt;br&gt;&amp;nbsp;7 &amp;nbsp; &amp;nbsp;1 0xffffffff80a4e000 aa7a &amp;nbsp; &amp;nbsp; fuse.ko
&lt;br&gt;&amp;nbsp;8 &amp;nbsp; &amp;nbsp;1 0xffffffff80a59000 82e &amp;nbsp; &amp;nbsp; &amp;nbsp;accf_http.ko
&lt;br&gt;&amp;nbsp;9 &amp;nbsp; &amp;nbsp;1 0xffffffff80a5a000 19ba &amp;nbsp; &amp;nbsp; ng_socket.ko
&lt;br&gt;&amp;nbsp;10 &amp;nbsp; &amp;nbsp;4 0xffffffff80a5c000 89a &amp;nbsp; &amp;nbsp; &amp;nbsp;ng_bluetooth.ko
&lt;br&gt;&amp;nbsp;11 &amp;nbsp; &amp;nbsp;1 0xffffffff80a5d000 8b1a &amp;nbsp; &amp;nbsp; ng_hci.ko
&lt;br&gt;&amp;nbsp;12 &amp;nbsp; &amp;nbsp;1 0xffffffff80a66000 b498 &amp;nbsp; &amp;nbsp; ng_l2cap.ko
&lt;br&gt;&amp;nbsp;13 &amp;nbsp; &amp;nbsp;1 0xffffffff80a72000 12c9e &amp;nbsp; &amp;nbsp;ng_btsocket.ko
&lt;br&gt;&lt;br&gt;loads of stuff now.
&lt;br&gt;&lt;br&gt;potato# ngctl li
&lt;br&gt;There are 4 total nodes:
&lt;br&gt;Name: btsock_l2c_raw &amp;nbsp;Type: btsock_l2c_raw &amp;nbsp;ID: 00000003 Num hooks: 0
&lt;br&gt;Name: btsock_hci_raw &amp;nbsp;Type: btsock_hci_raw &amp;nbsp;ID: 00000002 Num hooks: 0
&lt;br&gt;Name: btsock_l2c &amp;nbsp; &amp;nbsp; &amp;nbsp;Type: btsock_l2c &amp;nbsp; &amp;nbsp; &amp;nbsp;ID: 00000004 Num hooks: 0
&lt;br&gt;Name: ngctl1781 &amp;nbsp; &amp;nbsp; &amp;nbsp; Type: socket &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ID: 00000012 &amp;nbsp; Num hooks: 0
&lt;br&gt;&lt;br&gt;but still I cannot get the stack to work! I have also tried commenting
&lt;br&gt;out the ubt* stuff in devd.conf and rebooting, no difference. The little
&lt;br&gt;light on the dongle flashes merrily, but if the stack won't start I
&lt;br&gt;won't be able to do anything.
&lt;br&gt;&lt;br&gt;Can anyone help please?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;John - comp dot john at googlemail dot com
&lt;br&gt;OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop
&lt;br&gt;GPG: 0xF08A33C5
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26459376&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26459376&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-getting-the-bluetooth-stack-to-start-tp26459376p26459376.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26379020</id>
	<title>Re: Visibility</title>
	<published>2009-11-16T12:33:07Z</published>
	<updated>2009-11-16T12:33:07Z</updated>
	<author>
		<name>Guido Falsi</name>
	</author>
	<content type="html">Helge Oldach wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Guido Falsi wrote on Mon, 16 Nov 2009 17:50:07 +0100 (CET):
&lt;br&gt;&amp;gt;&amp;gt; Today I was playing around a little with bluetooth and I had the fancy
&lt;br&gt;&amp;gt;&amp;gt; to just make my FreeBSD system not visible via bluetooth by default.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I could not find any configuration to do this, nor any instruction in
&lt;br&gt;&amp;gt;&amp;gt; the manual.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is this what you want?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; toor@sep / # cat /etc/bluetooth/ubt0.conf
&lt;br&gt;&amp;gt; discoverable=&amp;quot;NO&amp;quot;
&lt;br&gt;&amp;gt; toor@sep / # 
&lt;/div&gt;&lt;br&gt;Thanks! This is exactly what I was looking for. Checking the defaults 
&lt;br&gt;directory did not occur to me :)
&lt;br&gt;&lt;br&gt;Thanks also to Iain, His suggestion showed me how to enable visibility 
&lt;br&gt;on request, which can be quite useful!
&lt;br&gt;&lt;br&gt;Thanks again, sorry for the obvious question.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Guido Falsi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26379020&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mad@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26379020&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26379020&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Visibility-tp26375648p26379020.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26376407</id>
	<title>iPhone and bcm-2045b</title>
	<published>2009-11-16T09:37:26Z</published>
	<updated>2009-11-16T09:37:26Z</updated>
	<author>
		<name>Iain Hibbert</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&amp;nbsp; &amp;nbsp;A friend of mine just got an iPhone 3G, he was here the other day and I
&lt;br&gt;tried to probe the device using my laptop (Thinkpad T60 with NetBSD) which
&lt;br&gt;has bluetooth built in (a Broadcom BCM2045B connected via internal USB)
&lt;br&gt;&lt;br&gt;I managed to discover it ok, but when I opened a connection to the device,
&lt;br&gt;my controller detached from the USB bus!
&lt;br&gt;&lt;br&gt;I can't see that its NetBSD specifically (at least, not the Bluetooth
&lt;br&gt;part) but I don't have any other OS installed to test. &amp;nbsp;Next time he comes
&lt;br&gt;around I'll sniff with hcidump to see how far the connection gets, and
&lt;br&gt;also try it with an external 2.1 CSR dongle that I have.
&lt;br&gt;&lt;br&gt;In the meantime, I wonder if anybody else has had any issues connecting to
&lt;br&gt;an iPhone 3G?
&lt;br&gt;&lt;br&gt;iain
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26376407&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26376407&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/iPhone-and-bcm-2045b-tp26376407p26376407.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26375999</id>
	<title>Re: Visibility</title>
	<published>2009-11-16T09:28:01Z</published>
	<updated>2009-11-16T09:28:01Z</updated>
	<author>
		<name>Iain Hibbert</name>
	</author>
	<content type="html">On Mon, 16 Nov 2009, Guido Falsi wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Today I was playing around a little with bluetooth and I had the fancy
&lt;br&gt;&amp;gt; to just make my FreeBSD system not visible via bluetooth by default.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I could not find any configuration to do this, nor any instruction in
&lt;br&gt;&amp;gt; the manual.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there a simple way to do this? is this supported(no problem in
&lt;br&gt;&amp;gt; writing small scripts or code snippets...) or simply impossibile without
&lt;br&gt;&amp;gt; major tinkering with the stack?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks in advance, this is just an idea I had, nothing urgent!
&lt;/div&gt;&lt;br&gt;You need to have &amp;quot;Inquiry Scan&amp;quot; off. You can switch this manually with
&lt;br&gt;hccontrol(8) but I don't know how to make it so that it isn't turned on,
&lt;br&gt;perhaps using bluetooth_device_discoverable=NO in your /etc/rc.conf?
&lt;br&gt;&lt;br&gt;iain
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26375999&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26375999&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Visibility-tp26375648p26375999.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26375648</id>
	<title>Visibility</title>
	<published>2009-11-16T08:50:07Z</published>
	<updated>2009-11-16T08:50:07Z</updated>
	<author>
		<name>Guido Falsi</name>
	</author>
	<content type="html">Today I was playing around a little with bluetooth and I had the fancy
&lt;br&gt;to just make my FreeBSD system not visible via bluetooth by default.
&lt;br&gt;&lt;br&gt;I could not find any configuration to do this, nor any instruction in
&lt;br&gt;the manual.
&lt;br&gt;&lt;br&gt;Is there a simple way to do this? is this supported(no problem in
&lt;br&gt;writing small scripts or code snippets...) or simply impossibile without
&lt;br&gt;major tinkering with the stack?
&lt;br&gt;&lt;br&gt;Thanks in advance, this is just an idea I had, nothing urgent!
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Guido Falsi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26375648&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mad@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26375648&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26375648&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Visibility-tp26375648p26375648.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26064196</id>
	<title>Re: bluetooth.h, c++ include error</title>
	<published>2009-10-26T10:43:35Z</published>
	<updated>2009-10-26T10:43:35Z</updated>
	<author>
		<name>Maksim Yevmenkin-2</name>
	</author>
	<content type="html">On Tue, Oct 6, 2009 at 8:48 AM, Masoom Shaikh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26064196&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;masoom.shaikh@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Mon, Oct 5, 2009 at 5:26 PM, Iain Hibbert &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26064196&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;plunky@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Mon, 5 Oct 2009, Masoom Shaikh wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; what i am requesting is just variable name change ;-) my tree is at
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; revision 197571, thus the patch i am presenting is also generated
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; against it reject this if you want patch against latest revision
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; renamed second argument of bt_devfilter() from 'new' to 'dfnew'. df for
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; device filter to maintain uniformity renamed third argument from 'old'
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; to 'dfold'.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; style(9) mentions that for kernel include files exposed to userland
&lt;br&gt;&amp;gt;&amp;gt; (technically, this is always in userland but perhaps the same rules apply)
&lt;br&gt;&amp;gt;&amp;gt; the prototype tag arguments should be made safe, eg starting with a _
&lt;br&gt;&amp;gt;&amp;gt; perhaps for much this reason..
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; so, my suggestion would be to use _new and _old etc..
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; iain
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (or, just don't use them, they are not especially required :)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; so this shall work
&lt;br&gt;&amp;gt; i just renamed bt_devfilter() variable names, because it was the one which
&lt;br&gt;&amp;gt; caused trouble
&lt;br&gt;&amp;gt; will someone commit this ?
&lt;/div&gt;&lt;br&gt;i just committed fix for this.
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;max
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26064196&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26064196&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/bluetooth.h%2C-c%2B%2B-include-error-tp25740266p26064196.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25771334</id>
	<title>Re: bluetooth.h, c++ include error</title>
	<published>2009-10-06T08:48:02Z</published>
	<updated>2009-10-06T08:48:02Z</updated>
	<author>
		<name>Masoom Shaikh-3</name>
	</author>
	<content type="html">On Mon, Oct 5, 2009 at 5:26 PM, Iain Hibbert &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25771334&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;plunky@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, 5 Oct 2009, Masoom Shaikh wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; what i am requesting is just variable name change ;-) my tree is at
&lt;br&gt;&amp;gt; &amp;gt; revision 197571, thus the patch i am presenting is also generated
&lt;br&gt;&amp;gt; &amp;gt; against it reject this if you want patch against latest revision
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; renamed second argument of bt_devfilter() from 'new' to 'dfnew'. df for
&lt;br&gt;&amp;gt; &amp;gt; device filter to maintain uniformity renamed third argument from 'old'
&lt;br&gt;&amp;gt; &amp;gt; to 'dfold'.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; style(9) mentions that for kernel include files exposed to userland
&lt;br&gt;&amp;gt; (technically, this is always in userland but perhaps the same rules apply)
&lt;br&gt;&amp;gt; the prototype tag arguments should be made safe, eg starting with a _
&lt;br&gt;&amp;gt; perhaps for much this reason..
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; so, my suggestion would be to use _new and _old etc..
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; iain
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (or, just don't use them, they are not especially required :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; so this shall work
&lt;/div&gt;i just renamed bt_devfilter() variable names, because it was the one which
&lt;br&gt;caused trouble
&lt;br&gt;will someone commit this ?
&lt;br&gt;&lt;br&gt;Index: bluetooth.h
&lt;br&gt;===================================================================
&lt;br&gt;--- bluetooth.h &amp;nbsp; &amp;nbsp;(revision 197804)
&lt;br&gt;+++ bluetooth.h &amp;nbsp; &amp;nbsp;(working copy)
&lt;br&gt;@@ -163,8 +163,8 @@
&lt;br&gt;&amp;nbsp;int &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devsend (int s, uint16_t opcode, void *param, size_t plen);
&lt;br&gt;&amp;nbsp;ssize_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devrecv (int s, void *buf, size_t size, time_t to);
&lt;br&gt;&amp;nbsp;int &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devreq &amp;nbsp;(int s, struct bt_devreq *r, time_t to);
&lt;br&gt;-int &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devfilter(int s, struct bt_devfilter const *new,
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct bt_devfilter *old);
&lt;br&gt;+int &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devfilter(int s, struct bt_devfilter const *_new,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct bt_devfilter *_old);
&lt;br&gt;&amp;nbsp;void &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devfilter_pkt_set(struct bt_devfilter *filter, uint8_t
&lt;br&gt;type);
&lt;br&gt;&amp;nbsp;void &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devfilter_pkt_clr(struct bt_devfilter *filter, uint8_t
&lt;br&gt;type);
&lt;br&gt;&amp;nbsp;int &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devfilter_pkt_tst(struct bt_devfilter const *filter, uint8_t
&lt;br&gt;type);
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25771334&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25771334&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/bluetooth.h%2C-c%2B%2B-include-error-tp25740266p25771334.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25754931</id>
	<title>Re: bluetooth.h, c++ include error</title>
	<published>2009-10-05T10:26:37Z</published>
	<updated>2009-10-05T10:26:37Z</updated>
	<author>
		<name>Iain Hibbert</name>
	</author>
	<content type="html">On Mon, 5 Oct 2009, Masoom Shaikh wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; what i am requesting is just variable name change ;-) my tree is at
&lt;br&gt;&amp;gt; revision 197571, thus the patch i am presenting is also generated
&lt;br&gt;&amp;gt; against it reject this if you want patch against latest revision
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; renamed second argument of bt_devfilter() from 'new' to 'dfnew'. df for
&lt;br&gt;&amp;gt; device filter to maintain uniformity renamed third argument from 'old'
&lt;br&gt;&amp;gt; to 'dfold'.
&lt;br&gt;&lt;br&gt;style(9) mentions that for kernel include files exposed to userland
&lt;br&gt;(technically, this is always in userland but perhaps the same rules apply)
&lt;br&gt;the prototype tag arguments should be made safe, eg starting with a _
&lt;br&gt;perhaps for much this reason..
&lt;br&gt;&lt;br&gt;so, my suggestion would be to use _new and _old etc..
&lt;br&gt;&lt;br&gt;iain
&lt;br&gt;&lt;br&gt;(or, just don't use them, they are not especially required :)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25754931&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25754931&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/bluetooth.h%2C-c%2B%2B-include-error-tp25740266p25754931.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25754490</id>
	<title>Re: bluetooth.h, c++ include error</title>
	<published>2009-10-05T09:58:10Z</published>
	<updated>2009-10-05T09:58:10Z</updated>
	<author>
		<name>Masoom Shaikh-3</name>
	</author>
	<content type="html">On Sun, Oct 4, 2009 at 6:26 PM, Maksim Yevmenkin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25754490&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maksim.yevmenkin@...&lt;/a&gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sun, Oct 4, 2009 at 10:42 AM, Masoom Shaikh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25754490&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;masoom.shaikh@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; posting here after @current and @questions ignored
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hello,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; while going through bluetooth.h, I observed
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; int bt_devfilter(int s, struct bt_devfilter const *new, struct
&lt;br&gt;&amp;gt; bt_devfilter
&lt;br&gt;&amp;gt; &amp;gt; *old);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; this line appears in bluetooth.h @ line # 166, rv197571
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; see ? the variable named 'new' will cause trouble to c++ source files
&lt;br&gt;&amp;gt; &amp;gt; i honestly believe this is not intentional, c++ programmers will have to
&lt;br&gt;&amp;gt; &amp;gt; perform some acrobats to get past this
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; patches are welcome
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks,
&lt;br&gt;&amp;gt; max
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;what i am requesting is just variable name change ;-)
&lt;br&gt;my tree is at revision 197571, thus the patch i am presenting is also
&lt;br&gt;generated against it
&lt;br&gt;reject this if you want patch against latest revision
&lt;br&gt;&lt;br&gt;renamed second argument of bt_devfilter() from 'new' to 'dfnew'. df for
&lt;br&gt;device filter
&lt;br&gt;to maintain uniformity renamed third argument from 'old' to 'dfold'.
&lt;br&gt;&lt;br&gt;the patch follows
&lt;br&gt;&lt;br&gt;Index: bluetooth.h
&lt;br&gt;===================================================================
&lt;br&gt;--- bluetooth.h &amp;nbsp; &amp;nbsp;(revision 197571)
&lt;br&gt;+++ bluetooth.h &amp;nbsp; &amp;nbsp;(working copy)
&lt;br&gt;@@ -28,7 +28,7 @@
&lt;br&gt;&amp;nbsp; * SUCH DAMAGE.
&lt;br&gt;&amp;nbsp; *
&lt;br&gt;&amp;nbsp; * $Id: bluetooth.h,v 1.5 2003/09/14 23:28:42 max Exp $
&lt;br&gt;- * $FreeBSD$
&lt;br&gt;+ * $FreeBSD: stable/8/lib/libbluetooth/bluetooth.h 191388 2009-04-22
&lt;br&gt;15:50:03Z emax $
&lt;br&gt;&amp;nbsp; */
&lt;br&gt;&lt;br&gt;&amp;nbsp;#ifndef _BLUETOOTH_H_
&lt;br&gt;@@ -163,8 +163,8 @@
&lt;br&gt;&amp;nbsp;int &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devsend (int s, uint16_t opcode, void *param, size_t plen);
&lt;br&gt;&amp;nbsp;ssize_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devrecv (int s, void *buf, size_t size, time_t to);
&lt;br&gt;&amp;nbsp;int &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devreq &amp;nbsp;(int s, struct bt_devreq *r, time_t to);
&lt;br&gt;-int &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devfilter(int s, struct bt_devfilter const *new,
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct bt_devfilter *old);
&lt;br&gt;+int &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devfilter(int s, struct bt_devfilter const *dfnew,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct bt_devfilter *dfold);
&lt;br&gt;&amp;nbsp;void &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devfilter_pkt_set(struct bt_devfilter *filter, uint8_t
&lt;br&gt;type);
&lt;br&gt;&amp;nbsp;void &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devfilter_pkt_clr(struct bt_devfilter *filter, uint8_t
&lt;br&gt;type);
&lt;br&gt;&amp;nbsp;int &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bt_devfilter_pkt_tst(struct bt_devfilter const *filter, uint8_t
&lt;br&gt;type);
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25754490&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25754490&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/bluetooth.h%2C-c%2B%2B-include-error-tp25740266p25754490.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25740693</id>
	<title>Re: bluetooth.h, c++ include error</title>
	<published>2009-10-04T11:26:56Z</published>
	<updated>2009-10-04T11:26:56Z</updated>
	<author>
		<name>Maksim Yevmenkin-2</name>
	</author>
	<content type="html">On Sun, Oct 4, 2009 at 10:42 AM, Masoom Shaikh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25740693&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;masoom.shaikh@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; posting here after @current and @questions ignored
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; while going through bluetooth.h, I observed
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; int bt_devfilter(int s, struct bt_devfilter const *new, struct bt_devfilter
&lt;br&gt;&amp;gt; *old);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; this line appears in bluetooth.h @ line # 166, rv197571
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; see ? the variable named 'new' will cause trouble to c++ source files
&lt;br&gt;&amp;gt; i honestly believe this is not intentional, c++ programmers will have to
&lt;br&gt;&amp;gt; perform some acrobats to get past this
&lt;/div&gt;&lt;br&gt;&lt;br&gt;patches are welcome
&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;max
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25740693&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25740693&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/bluetooth.h%2C-c%2B%2B-include-error-tp25740266p25740693.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25740266</id>
	<title>bluetooth.h, c++ include error</title>
	<published>2009-10-04T10:42:07Z</published>
	<updated>2009-10-04T10:42:07Z</updated>
	<author>
		<name>Masoom Shaikh-3</name>
	</author>
	<content type="html">posting here after @current and @questions ignored
&lt;br&gt;&lt;br&gt;Hello,
&lt;br&gt;&lt;br&gt;while going through bluetooth.h, I observed
&lt;br&gt;&lt;br&gt;int bt_devfilter(int s, struct bt_devfilter const *new, struct bt_devfilter
&lt;br&gt;*old);
&lt;br&gt;&lt;br&gt;this line appears in bluetooth.h @ line # 166, rv197571
&lt;br&gt;&lt;br&gt;see ? the variable named 'new' will cause trouble to c++ source files
&lt;br&gt;i honestly believe this is not intentional, c++ programmers will have to
&lt;br&gt;perform some acrobats to get past this
&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;Masoom Shaikh
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25740266&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25740266&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/bluetooth.h%2C-c%2B%2B-include-error-tp25740266p25740266.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25738595</id>
	<title>Re: remote_name_request, using libbluetooth</title>
	<published>2009-10-04T07:39:42Z</published>
	<updated>2009-10-04T07:39:42Z</updated>
	<author>
		<name>Masoom Shaikh-3</name>
	</author>
	<content type="html">On Sun, Oct 4, 2009 at 7:57 AM, Iain Hibbert &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25738595&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;plunky@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sun, 4 Oct 2009, Masoom Shaikh wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; On Sat, 3 Oct 2009, Masoom Shaikh wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int status = bt_devreq( s, &amp;request, 0);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; yes, i did forgot to say where it failed, devices are inquired properly
&lt;br&gt;&amp;gt; no
&lt;br&gt;&amp;gt; &amp;gt; issues there
&lt;br&gt;&amp;gt; &amp;gt; but bt_devreq() fails with status == -1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ah, I see.. you should put a non-zero timeout value there (waiting for 0
&lt;br&gt;&amp;gt; seconds will not leave enough time for the response :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; if you use eg
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (status == -1)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;err(1, &amp;quot;bt_devreq (RemoteNameRequest)&amp;quot;)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; then you would see an &amp;quot;Operation timed out&amp;quot; message.. I should think 5
&lt;br&gt;&amp;gt; seconds would be reasonable..
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; regards,
&lt;br&gt;&amp;gt; iain
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; u got the bug by neck, and i would have slit its neck by the time this mail
&lt;/div&gt;is in your inbox ;-)
&lt;br&gt;that was the exact error, timeout value of 5 didn't work for me, thus am
&lt;br&gt;using 60, and it works
&lt;br&gt;thanks Iain
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25738595&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25738595&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/remote_name_request%2C-using-libbluetooth-tp25729296p25738595.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25735130</id>
	<title>Re: remote_name_request, using libbluetooth</title>
	<published>2009-10-03T21:56:59Z</published>
	<updated>2009-10-03T21:56:59Z</updated>
	<author>
		<name>Masoom Shaikh-3</name>
	</author>
	<content type="html">On Sat, Oct 3, 2009 at 8:13 PM, Iain Hibbert &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25735130&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;plunky@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sat, 3 Oct 2009, Masoom Shaikh wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; today i spent ages hacking hccontrol to do something similar it does when
&lt;br&gt;&amp;gt; &amp;gt; invoked as below
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; hccontrol remote_name_request &amp;lt;BD_ADDR&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; somehow i couldn't succeed ;-(
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; you didn't say exactly the failure you have reached, did you use hcidump
&lt;br&gt;&amp;gt; to check the actions?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; what really i want is to search for devices and request their names
&lt;br&gt;&amp;gt; &amp;gt; i have a ruby script which does the same by using hccontrol and
&lt;br&gt;&amp;gt; manipulating
&lt;br&gt;&amp;gt; &amp;gt; it console output
&lt;br&gt;&amp;gt; &amp;gt; but am interested in C version.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; pasted below is full source.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; #include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; #include &amp;lt;stdlib.h&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; #include &amp;lt;errno.h&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; #include &amp;lt;string.h&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; #include &amp;lt;bluetooth.h&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; /*
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;* removes duplicate entries from result and returns the new size
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;* free()'s the original array, result is calloc()ed
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;* TODO: implement in a better way
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;*/
&lt;br&gt;&amp;gt; &amp;gt; int do_uniq( const int size, struct bt_devinquiry** result)
&lt;br&gt;&amp;gt; &amp;gt; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; struct bt_devinquiry* newResult = (struct bt_devinquiry*)calloc(
&lt;br&gt;&amp;gt; size,
&lt;br&gt;&amp;gt; &amp;gt; sizeof(struct bt_devinquiry));
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; struct bt_devinquiry* srcCurr = *result;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; struct bt_devinquiry* dstCurr = newResult;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; int count = 0;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; int index = 0;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; for ( ; index &amp;lt; size; ++index)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int j = 0;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int found = 0;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while ( j &amp;lt; count)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ( bdaddr_same( &amp;( newResult[j++].bdaddr), &amp;(
&lt;br&gt;&amp;gt; &amp;gt; srcCurr-&amp;gt;bdaddr)))
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; found = 1;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ( !found)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *dstCurr = *srcCurr;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ++dstCurr;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ++count;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ++srcCurr;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; free(*result);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; *result = newResult;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; return count;
&lt;br&gt;&amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; int main( int argc, char* argv[])
&lt;br&gt;&amp;gt; &amp;gt; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; /* search devices */
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; struct bt_devinquiry* result = 0;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; int num = bt_devinquiry( 0, 0, 0, &amp;result);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; if ( num &amp;lt;= 0)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ( h_errno)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; what is h_errno? &amp;nbsp;I think these checks are uninvolved with the code at
&lt;br&gt;&amp;gt; hand..
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; herror( &amp;quot;no devices found&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf( &amp;quot;no devices found\n&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return num;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; /* remove duplicate entries */
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; num = do_uniq( num, &amp;result);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; printf( &amp;quot;%d device(s) found\n&amp;quot;, num);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; also, I don't think the do_uniq() step should be necessary -- we did
&lt;br&gt;&amp;gt; discuss it at least and in the version i wrote for NetBSD it doesn't
&lt;br&gt;&amp;gt; return duplicate results
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; /* try to query device's name */
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; int s = bt_devopen( &amp;quot;ubt0hci&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; if ( s == -1)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ( h_errno)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; herror( &amp;quot;bt_devopen error\n&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf( &amp;quot;bt_devopen error\n&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; int i = 0;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; for ( ; i &amp;lt; num; ++i)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct bt_devreq request;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memset( &amp;request, 0, sizeof(request));
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.opcode = NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL,
&lt;br&gt;&amp;gt; &amp;gt; NG_HCI_OCF_REMOTE_NAME_REQ);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.event = NG_HCI_EVENT_REMOTE_NAME_REQ_COMPL;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ng_hci_remote_name_req_cp cp;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memset(&amp;cp, 0, sizeof(cp));
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bdaddr_copy( &amp;cp.bdaddr, &amp;result-&amp;gt;bdaddr);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cp.page_scan_rep_mode = NG_HCI_SCAN_REP_MODE0;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cp.page_scan_mode = NG_HCI_MANDATORY_PAGE_SCAN_MODE;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.cparam = (void*)&amp;cp;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.clen = sizeof(cp);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; char buffer[512];
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memset( buffer, 0, 512);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.rparam = (void*)buffer;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.rlen = 512;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int status = bt_devreq( s, &amp;request, 0);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ( status == 0)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ng_hci_event_pkt_t *e = (ng_hci_event_pkt_t*)buffer;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ng_hci_remote_name_req_compl_ep *ep =
&lt;br&gt;&amp;gt; &amp;gt; (ng_hci_remote_name_req_compl_ep*)(e + 1);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf( &amp;quot;status: %d\n&amp;quot;, ep-&amp;gt;status);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf( &amp;quot;name: %s\n&amp;quot;, ep-&amp;gt;name);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think your problem might be here. The event header is not returned, only
&lt;br&gt;&amp;gt; the remote_name_req_compl_ep event packet.. &amp;nbsp;(I would have used that
&lt;br&gt;&amp;gt; directly in the rparam field rather than a separate buffer -- bt_devreq
&lt;br&gt;&amp;gt; will not overflow the given space)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (status == -1)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ( h_errno)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; herror( &amp;quot;bt_devreq error\n&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf( &amp;quot;bt_devreq error\n&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;bt_devreq unknown return value\n&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; bt_devclose(s);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;&amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; iain
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks for replying
&lt;/div&gt;yes, i did forgot to say where it failed, devices are inquired properly no
&lt;br&gt;issues there
&lt;br&gt;but bt_devreq() fails with status == -1
&lt;br&gt;&lt;br&gt;comment taken
&lt;br&gt;i will remove the separate buffer, thank you again
&lt;br&gt;&lt;br&gt;here is the hcidump output
&lt;br&gt;&lt;br&gt;HCIDump - HCI packet analyzer ver 1.5
&lt;br&gt;device: any snap_len: 65535 filter: 0xffffffffffffffff
&lt;br&gt;&amp;lt; HCI Command: Inquiry(0x01|0x0001) plen 5
&lt;br&gt;&amp;gt; HCI Event: Command Status(0x0f) plen 4
&lt;br&gt;&amp;gt; HCI Event: Inquiry Result(0x02) plen 15
&lt;br&gt;&amp;gt; HCI Event: Inquiry Result(0x02) plen 15
&lt;br&gt;&amp;gt; HCI Event: Inquiry Complete(0x01) plen 1
&lt;br&gt;&amp;lt; HCI Command: Remote Name Request(0x01|0x0019) plen 10
&lt;br&gt;&amp;gt; HCI Event: Command Status(0x0f) plen 4
&lt;br&gt;&amp;gt; HCI Event: Remote Name Req Complete(0x07) plen 255
&lt;br&gt;&lt;br&gt;i guess the last line indicates that we does receive device name but some
&lt;br&gt;how bt_devreq() returns fails
&lt;br&gt;i will poke around bt_devreq() for clues
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25735130&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25735130&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/remote_name_request%2C-using-libbluetooth-tp25729296p25735130.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25729296</id>
	<title>remote_name_request, using libbluetooth</title>
	<published>2009-10-03T07:06:10Z</published>
	<updated>2009-10-03T07:06:10Z</updated>
	<author>
		<name>Masoom Shaikh-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;today i spent ages hacking hccontrol to do something similar it does when
&lt;br&gt;invoked as below
&lt;br&gt;&lt;br&gt;hccontrol remote_name_request &amp;lt;BD_ADDR&amp;gt;
&lt;br&gt;&lt;br&gt;somehow i couldn't succeed ;-(
&lt;br&gt;what really i want is to search for devices and request their names
&lt;br&gt;i have a ruby script which does the same by using hccontrol and manipulating
&lt;br&gt;it console output
&lt;br&gt;but am interested in C version.
&lt;br&gt;&lt;br&gt;pasted below is full source.
&lt;br&gt;&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;#include &amp;lt;stdlib.h&amp;gt;
&lt;br&gt;#include &amp;lt;errno.h&amp;gt;
&lt;br&gt;#include &amp;lt;string.h&amp;gt;
&lt;br&gt;#include &amp;lt;bluetooth.h&amp;gt;
&lt;br&gt;&lt;br&gt;/*
&lt;br&gt;&amp;nbsp;* removes duplicate entries from result and returns the new size
&lt;br&gt;&amp;nbsp;* free()'s the original array, result is calloc()ed
&lt;br&gt;&amp;nbsp;* TODO: implement in a better way
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;int do_uniq( const int size, struct bt_devinquiry** result)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; struct bt_devinquiry* newResult = (struct bt_devinquiry*)calloc( size,
&lt;br&gt;sizeof(struct bt_devinquiry));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; struct bt_devinquiry* srcCurr = *result;
&lt;br&gt;&amp;nbsp; &amp;nbsp; struct bt_devinquiry* dstCurr = newResult;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; int count = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int index = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; for ( ; index &amp;lt; size; ++index)
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int j = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int found = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while ( j &amp;lt; count)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ( bdaddr_same( &amp;( newResult[j++].bdaddr), &amp;(
&lt;br&gt;srcCurr-&amp;gt;bdaddr)))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; found = 1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ( !found)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *dstCurr = *srcCurr;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ++dstCurr;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ++count;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ++srcCurr;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; free(*result);
&lt;br&gt;&amp;nbsp; &amp;nbsp; *result = newResult;
&lt;br&gt;&amp;nbsp; &amp;nbsp; return count;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;int main( int argc, char* argv[])
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; /* search devices */
&lt;br&gt;&amp;nbsp; &amp;nbsp; struct bt_devinquiry* result = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int num = bt_devinquiry( 0, 0, 0, &amp;result);
&lt;br&gt;&amp;nbsp; &amp;nbsp; if ( num &amp;lt;= 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ( h_errno)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; herror( &amp;quot;no devices found&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf( &amp;quot;no devices found\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return num;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; /* remove duplicate entries */
&lt;br&gt;&amp;nbsp; &amp;nbsp; num = do_uniq( num, &amp;result);
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf( &amp;quot;%d device(s) found\n&amp;quot;, num);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /* try to query device's name */
&lt;br&gt;&amp;nbsp; &amp;nbsp; int s = bt_devopen( &amp;quot;ubt0hci&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; if ( s == -1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ( h_errno)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; herror( &amp;quot;bt_devopen error\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf( &amp;quot;bt_devopen error\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; int i = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; for ( ; i &amp;lt; num; ++i)
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct bt_devreq request;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memset( &amp;request, 0, sizeof(request));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.opcode = NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL,
&lt;br&gt;NG_HCI_OCF_REMOTE_NAME_REQ);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.event = NG_HCI_EVENT_REMOTE_NAME_REQ_COMPL;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ng_hci_remote_name_req_cp cp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memset(&amp;cp, 0, sizeof(cp));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bdaddr_copy( &amp;cp.bdaddr, &amp;result-&amp;gt;bdaddr);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cp.page_scan_rep_mode = NG_HCI_SCAN_REP_MODE0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cp.page_scan_mode = NG_HCI_MANDATORY_PAGE_SCAN_MODE;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.cparam = (void*)&amp;cp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.clen = sizeof(cp);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; char buffer[512];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memset( buffer, 0, 512);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.rparam = (void*)buffer;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.rlen = 512;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int status = bt_devreq( s, &amp;request, 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ( status == 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ng_hci_event_pkt_t *e = (ng_hci_event_pkt_t*)buffer;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ng_hci_remote_name_req_compl_ep *ep =
&lt;br&gt;(ng_hci_remote_name_req_compl_ep*)(e + 1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf( &amp;quot;status: %d\n&amp;quot;, ep-&amp;gt;status);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf( &amp;quot;name: %s\n&amp;quot;, ep-&amp;gt;name);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (status == -1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ( h_errno)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; herror( &amp;quot;bt_devreq error\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf( &amp;quot;bt_devreq error\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;bt_devreq unknown return value\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; bt_devclose(s);
&lt;br&gt;&amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;}
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25729296&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25729296&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/remote_name_request%2C-using-libbluetooth-tp25729296p25729296.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25266852</id>
	<title>Invitation to connect on LinkedIn</title>
	<published>2009-09-02T15:07:37Z</published>
	<updated>2009-09-02T15:07:37Z</updated>
	<author>
		<name>Matthew McCarthy</name>
	</author>
	<content type="html">LinkedIn
&lt;br&gt;------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;Hello, I am the host of the Power Networking Events!!!I'd like to add you to my professional network on LinkedIn.
&lt;br&gt;&lt;br&gt;- Matthew
&lt;br&gt;&lt;br&gt;Accept Matthew McCarthy's invite:
&lt;br&gt;&lt;a href=&quot;https://www.linkedin.com/e/isd/714708318/x_AxcQiz/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.linkedin.com/e/isd/714708318/x_AxcQiz/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;------
&lt;br&gt;(c) 2009, LinkedIn Corporation
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25266852&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25266852&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Invitation-to-connect-on-LinkedIn-tp25266852p25266852.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25070995</id>
	<title>obexapp 1.4.12</title>
	<published>2009-08-20T15:06:07Z</published>
	<updated>2009-08-20T15:06:07Z</updated>
	<author>
		<name>Maksim Yevmenkin-2</name>
	</author>
	<content type="html">hello,
&lt;br&gt;&lt;br&gt;obexapp 1.4.12 can be downloaded from
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.geocities.com/m_evmenkin/obexapp-1.4.12.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.geocities.com/m_evmenkin/obexapp-1.4.12.tar.gz&lt;/a&gt;&lt;br&gt;&lt;br&gt;the biggest change is support for virtual per-device root folders
&lt;br&gt;(mostly contributed by mi@) also few patches from other people. sorry
&lt;br&gt;i can not recall of them at the moment, but they all get credit for
&lt;br&gt;their work.
&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;max
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25070995&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25070995&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/obexapp-1.4.12-tp25070995p25070995.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24554001</id>
	<title>Order To New Zealand</title>
	<published>2009-07-18T14:20:51Z</published>
	<updated>2009-07-18T14:20:51Z</updated>
	<author>
		<name>Bryan James</name>
	</author>
	<content type="html">&amp;lt;&amp;lt;&amp;lt; No Message Collected &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24554001&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24554001&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Order-To-New-Zealand-tp24554001p24554001.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24487033</id>
	<title>Atheros wireless device driver developer</title>
	<published>2009-07-14T12:40:52Z</published>
	<updated>2009-07-14T12:40:52Z</updated>
	<author>
		<name>David A. Horvay - MRINetwork</name>
	</author>
	<content type="html">Hello Everyone,
&lt;br&gt;&amp;nbsp;
&lt;br&gt;I have an opportunity for a device driver developer with a heavy wireless
&lt;br&gt;Atheros background.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Please let me know if anyone is interested or might know someone.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Please see job description below.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Thank you very much....
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-Dave
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Senior Software Engineer with WLAN Device Driver Development Experience
&lt;br&gt;&lt;br&gt;The ideal candidate will have several years of communication experience as
&lt;br&gt;well as experience programming low level hardware drivers. Requirements: 
&lt;br&gt;&lt;br&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BSCS or BSEE or relevant experience 
&lt;br&gt;&lt;br&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5+ years of experience in development of WLAN device drivers 
&lt;br&gt;&lt;br&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fluency in coding and debugging C
&lt;br&gt;&lt;br&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Experience with Atheros drivers a plus
&lt;br&gt;&lt;br&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Expertise in one or more of these protocols: 
&lt;br&gt;&lt;br&gt;§ &amp;nbsp;802.11 
&lt;br&gt;&lt;br&gt;§ &amp;nbsp;ATM 
&lt;br&gt;&lt;br&gt;§ &amp;nbsp;Sonet/SDH 
&lt;br&gt;&lt;br&gt;§ &amp;nbsp;NDIS 
&lt;br&gt;&lt;br&gt;§ &amp;nbsp;Bluetooth 
&lt;br&gt;&lt;br&gt;§ &amp;nbsp;Ethernet, GBit Ethernet 
&lt;br&gt;&lt;br&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Experience with one or more of the following operating systems: 
&lt;br&gt;&lt;br&gt;§ &amp;nbsp;MS Windows, WinCE 
&lt;br&gt;&lt;br&gt;§ &amp;nbsp;Linux 
&lt;br&gt;&lt;br&gt;§ &amp;nbsp;Embedded RTOS 
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;David A. Horvay
&lt;br&gt;Sr. Account Executive
&lt;br&gt;Technology Solutions Division 
&lt;br&gt;MRINetwork Ultimate Placements, LLC
&lt;br&gt;One Park Centre Drive, Suite 305A
&lt;br&gt;TF:877-334-0285 ext. 202
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24487033&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dhorvay@...&lt;/a&gt;
&lt;br&gt;&amp;nbsp;&amp;lt;blocked::blocked::&lt;a href=&quot;http://www.linkedin.com/in/davidhorvay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/davidhorvay&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;a href=&quot;http://www.linkedin.com/in/davidhorvay&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/davidhorvay&lt;/a&gt;&lt;br&gt;www.MRINetwork.com &amp;lt;blocked::blocked::&lt;a href=&quot;http://www.mrinetwork.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mrinetwork.com/&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;lt;blocked::blocked::&lt;a href=&quot;http://www.mrinetwork.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mrinetwork.com/&lt;/a&gt;&amp;gt; 
&lt;br&gt;BUILDING THE HEART OF BUSINESS (TM)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Please understand my mission at MRI Ultimate Placements is to partner with
&lt;br&gt;those select clients where there is a philosophical fit. &amp;nbsp;My goal has never
&lt;br&gt;been to be all things to all people. &amp;nbsp;As a client-focused search consultant
&lt;br&gt;I evaluate each potential assignment based on alignment with my area of
&lt;br&gt;expertise and the timing and urgency of each search.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24487033&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24487033&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Atheros-wireless-device-driver-developer-tp24487033p24487033.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24483013</id>
	<title>Re: RFC: obexapp - virtual root folder for each device</title>
	<published>2009-07-14T09:26:22Z</published>
	<updated>2009-07-14T09:26:22Z</updated>
	<author>
		<name>Maksim Yevmenkin-2</name>
	</author>
	<content type="html">2009/7/13 Mikhail T. &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24483013&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mi+thun@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; Maksim, I just tried building the most recent obexapp from port (1.4.11)
&lt;br&gt;&amp;gt; and was surprised to find out, that the feature, which we spent so much
&lt;br&gt;&amp;gt; effort rehashing back in April, is still not there... What's holding it
&lt;br&gt;&amp;gt; up? Thanks! Yours,
&lt;br&gt;&lt;br&gt;thanks for the ping. yes, terribly sorry, i'm completely swamped with
&lt;br&gt;$realjob :( i'll try to get to it as soon as i can.
&lt;br&gt;&lt;br&gt;max
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24483013&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24483013&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/RFC%3A-obexapp---virtual-root-folder-for-each-device-tp23031105p24483013.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24473599</id>
	<title>Re: RFC: obexapp - virtual root folder for each device</title>
	<published>2009-07-13T21:30:54Z</published>
	<updated>2009-07-13T21:30:54Z</updated>
	<author>
		<name>Mikhail T.-6</name>
	</author>
	<content type="html">Maksim, I just tried building the most recent obexapp from port (1.4.11)
&lt;br&gt;and was surprised to find out, that the feature, which we spent so much
&lt;br&gt;effort rehashing back in April, is still not there... What's holding it
&lt;br&gt;up? Thanks! Yours,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; -mi
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24473599&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24473599&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-bluetooth-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/RFC%3A-obexapp---virtual-root-folder-for-each-device-tp23031105p24473599.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24353863</id>
	<title>Re: btpand uses a lot of CPU</title>
	<published>2009-07-06T04:32:44Z</published>
	<updated>2009-07-06T04:32:44Z</updated>
	<author>
		<name>Daniel O'Connor-3</name>
	</author>
	<content type="html">On Sat, 4 Jul 2009, Alexander Motin wrote:
&lt;br&gt;&amp;gt; Daniel O'Connor wrote:
&lt;br&gt;&amp;gt; &amp;gt; I have btpand working OK, however I notice that it uses a lot of
&lt;br&gt;&amp;gt; &amp;gt; CPU (20-70% of a Pentium-M 1.4GHz) even when idle.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What system version do you use? There was a bug causing high CPU
&lt;br&gt;&amp;gt; usage fixed few months ago.
&lt;br&gt;&lt;br&gt;Ah yes, it is a bit stale, I updated event.c and now it's all good.
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Daniel O'Connor software and network engineer
&lt;br&gt;for Genesis Software - &lt;a href=&quot;http://www.gsoft.com.au&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gsoft.com.au&lt;/a&gt;&lt;br&gt;&amp;quot;The nice thing about standards is that there
&lt;br&gt;are so many of them to choose from.&amp;quot;
&lt;br&gt;&amp;nbsp; -- Andrew Tanenbaum
&lt;br&gt;GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (195 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/24353863/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/btpand-uses-a-lot-of-CPU-tp24331744p24353863.html" />
</entry>

</feed>
