Re: [PATCH BlueZ v2] Fix unpair device when disconnected for No Bonding

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

 



Hi Dmitriy,

On Mon, Jul 04, 2011, Dmitriy Paliy wrote:
> @@ -2069,6 +2076,9 @@ void device_bonding_complete(struct btd_device *device, uint8_t status)
>  
>  	device_auth_req_free(device);
>  
> +	if (bonding)
> +		device->bonded = TRUE;

The "bonding" variable will only be set if we are the initiators. What
about us acting as acceptors? Wouldn't you need to check the storage
anyway here to be completely sure if you're bonded or not?

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


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux