linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] CreateBonding while periodic scanning
@ 2008-02-11  1:49 Manuel Naranjo
  2008-02-11  2:09 ` Manuel Naranjo
  0 siblings, 1 reply; 3+ messages in thread
From: Manuel Naranjo @ 2008-02-11  1:49 UTC (permalink / raw)
  To: BlueZ development

Hello List,

As I asked in the forums I'm trying to create a bonding to a device
while I'm running a periodic scanning.

Thing is that for some reason hcid is blocking me to do this, and Marcel
suggested removing the periodic inquiry check. But as he said, and I
think the same, that check was created for a reason.

The line that makes the conflict is this one (utils/hcid/adapter.c:

static DBusHandlerResult adapter_create_bonding(DBusConnection *conn,
                                                DBusMessage *msg, void
*data)
.....

if (adapter->discov_active || (adapter->pdiscov_active &&
!adapter->pinq_idle))
return error_discover_in_progress(conn, msg)

pinq_idle is 0 in my case, so then I get a discovery in progress exception.

Marcel suggested that I change the code to "if (adapter->discov_active
)" but still we would like to know what that check is made, so we can
get a better solution.

Thanks,
Manuel Naranjo
Wireless Cables Inc.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-devel] CreateBonding while periodic scanning
  2008-02-11  1:49 [Bluez-devel] CreateBonding while periodic scanning Manuel Naranjo
@ 2008-02-11  2:09 ` Manuel Naranjo
  2008-03-03 12:52   ` Manuel Naranjo
  0 siblings, 1 reply; 3+ messages in thread
From: Manuel Naranjo @ 2008-02-11  2:09 UTC (permalink / raw)
  To: BlueZ development

[-- Attachment #1: Type: text/plain, Size: 1244 bytes --]

Sorry I forgot the patch.

I confirmed the patch worked for an old Broadcom based dongle (D-Link
BT122) and for a CSR Bluecore 4 based dongle (AIRcable Host XR).

The patch should apply against the bluez-utils-3.26 vanilla package
> Hello List,
>
> As I asked in the forums I'm trying to create a bonding to a device
> while I'm running a periodic scanning.
>
> Thing is that for some reason hcid is blocking me to do this, and Marcel
> suggested removing the periodic inquiry check. But as he said, and I
> think the same, that check was created for a reason.
>
> The line that makes the conflict is this one (utils/hcid/adapter.c:
>
> static DBusHandlerResult adapter_create_bonding(DBusConnection *conn,
>                                                 DBusMessage *msg, void
> *data)
> .....
>
> if (adapter->discov_active || (adapter->pdiscov_active &&
> !adapter->pinq_idle))
> return error_discover_in_progress(conn, msg)
>
> pinq_idle is 0 in my case, so then I get a discovery in progress exception.
>
> Marcel suggested that I change the code to "if (adapter->discov_active
> )" but still we would like to know what that check is made, so we can
> get a better solution.
>
> Thanks,
> Manuel Naranjo
> Wireless Cables Inc.
>
>
>   


[-- Attachment #2: adapter.patch --]
[-- Type: text/x-patch, Size: 443 bytes --]

--- adapter.c.orig	2008-02-01 21:16:31.000000000 -0200
+++ adapter.c	2008-02-10 23:50:31.000000000 -0200
@@ -2216,7 +2216,7 @@
 	str2ba(peer_addr, &peer_bdaddr);
 
 	/* check if there is a pending discover: requested by D-Bus/non clients */
-	if (adapter->discov_active || (adapter->pdiscov_active && !adapter->pinq_idle))
+	if (adapter->discov_active)
 		return error_discover_in_progress(conn, msg);
 
 	pending_remote_name_cancel(adapter);

[-- Attachment #3: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-devel] CreateBonding while periodic scanning
  2008-02-11  2:09 ` Manuel Naranjo
@ 2008-03-03 12:52   ` Manuel Naranjo
  0 siblings, 0 replies; 3+ messages in thread
From: Manuel Naranjo @ 2008-03-03 12:52 UTC (permalink / raw)
  To: BlueZ development

[-- Attachment #1: Type: text/plain, Size: 1374 bytes --]

It's me or this mail passed through the list without much glory :S.
> Sorry I forgot the patch.
>
> I confirmed the patch worked for an old Broadcom based dongle (D-Link
> BT122) and for a CSR Bluecore 4 based dongle (AIRcable Host XR).
>
> The patch should apply against the bluez-utils-3.26 vanilla package
>   
>> Hello List,
>>
>> As I asked in the forums I'm trying to create a bonding to a device
>> while I'm running a periodic scanning.
>>
>> Thing is that for some reason hcid is blocking me to do this, and Marcel
>> suggested removing the periodic inquiry check. But as he said, and I
>> think the same, that check was created for a reason.
>>
>> The line that makes the conflict is this one (utils/hcid/adapter.c:
>>
>> static DBusHandlerResult adapter_create_bonding(DBusConnection *conn,
>>                                                 DBusMessage *msg, void
>> *data)
>> .....
>>
>> if (adapter->discov_active || (adapter->pdiscov_active &&
>> !adapter->pinq_idle))
>> return error_discover_in_progress(conn, msg)
>>
>> pinq_idle is 0 in my case, so then I get a discovery in progress exception.
>>
>> Marcel suggested that I change the code to "if (adapter->discov_active
>> )" but still we would like to know what that check is made, so we can
>> get a better solution.
>>
>> Thanks,
>> Manuel Naranjo
>> Wireless Cables Inc.
>>
>>
>>   
>>     
>
>   


[-- Attachment #2: adapter.patch --]
[-- Type: text/x-patch, Size: 443 bytes --]

--- adapter.c.orig	2008-02-01 21:16:31.000000000 -0200
+++ adapter.c	2008-02-10 23:50:31.000000000 -0200
@@ -2216,7 +2216,7 @@
 	str2ba(peer_addr, &peer_bdaddr);
 
 	/* check if there is a pending discover: requested by D-Bus/non clients */
-	if (adapter->discov_active || (adapter->pdiscov_active && !adapter->pinq_idle))
+	if (adapter->discov_active)
 		return error_discover_in_progress(conn, msg);
 
 	pending_remote_name_cancel(adapter);

[-- Attachment #3: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-03 12:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-11  1:49 [Bluez-devel] CreateBonding while periodic scanning Manuel Naranjo
2008-02-11  2:09 ` Manuel Naranjo
2008-03-03 12:52   ` Manuel Naranjo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).