Google
  Web www.spinics.net

User security mode patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hello,

On my cooker box (i still use 3.36 though), with the default hcid.conf
file, i can't pair with my phone unless i comment out the
passkey="BlueZ" line, or apply the joined patch.

The documentation says this passkey should be used only in auto security
mode.

Or am I wrong ?

Regards,

Guillaume B.
--- bluez-utils-3.36.orig/hcid/security.c	2008-10-03 13:37:17.000000000 +0200
+++ bluez-utils-3.36/hcid/security.c	2008-10-03 13:37:28.000000000 +0200
@@ -500,7 +500,7 @@
 	} else if (pairing == HCID_PAIRING_NONE)
 		goto reject;
 
-	if (hcid.security == HCID_SEC_AUTO && !ci->out) {
+	if ((hcid.security == HCID_SEC_AUTO) && !ci->out) {
 		set_pin_length(sba, hcid.pin_len);
 		memcpy(pr.pin_code, hcid.pin_code, hcid.pin_len);
 		pr.pin_len = hcid.pin_len;
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bluez-devel

[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]

Add to Google Powered by Linux