On Thu, Dec 15, 2011, Hemant Gupta wrote: > In my code, I am using htobl(passkey), while passkey is sent to kernel. > So you mean I need to change it to btohl ? No, you use htobl when encoding (writing to) a mgmt message and btohl when decoding (reading from) one. Johan -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html