public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* Question on hci_remote_features_evt()
@ 2009-05-14 20:17 Yu Kang Ku
  2009-05-14 20:26 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Yu Kang Ku @ 2009-05-14 20:17 UTC (permalink / raw)
  To: linux-bluetooth


Hi,

In http://lxr.linux.no/linux+v2.6.27/net/bluetooth/hci_event.c, hci_remote_features_evt() contains the following code:

if (!ev->status && lmp_ssp_capable(hdev) &&
			lmp_ssp_capable(conn)) {
	struct hci_cp_read_remote_ext_features cp;
	cp.handle = ev->handle;
	cp.page = 0x01;
	hci_send_cmd(hdev,
		HCI_OP_READ_REMOTE_EXT_FEATURES,
				sizeof(cp), &cp);
}

Should the if-statement check to make sure LMP Extended Features is supported before sending the HCI_OP_READ_REMOTE_EXT_FEATURES command?  Or does the fact that a remote device is SSP-capable imply LMP Extended Features is supported as well?

Thanks,
Kang


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

* Re: Question on hci_remote_features_evt()
  2009-05-14 20:17 Question on hci_remote_features_evt() Yu Kang Ku
@ 2009-05-14 20:26 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2009-05-14 20:26 UTC (permalink / raw)
  To: Yu Kang Ku; +Cc: linux-bluetooth

Hi Kang,

> In http://lxr.linux.no/linux+v2.6.27/net/bluetooth/hci_event.c, hci_remote_features_evt() contains the following code:
> 
> if (!ev->status && lmp_ssp_capable(hdev) &&
> 			lmp_ssp_capable(conn)) {
> 	struct hci_cp_read_remote_ext_features cp;
> 	cp.handle = ev->handle;
> 	cp.page = 0x01;
> 	hci_send_cmd(hdev,
> 		HCI_OP_READ_REMOTE_EXT_FEATURES,
> 				sizeof(cp), &cp);
> }
> 
> Should the if-statement check to make sure LMP Extended Features is supported before sending the HCI_OP_READ_REMOTE_EXT_FEATURES command?  Or does the fact that a remote device is SSP-capable imply LMP Extended Features is supported as well?

if you support SSP, you have to support extended features. The host
features bits for SSP are in the second features page and thus it is
required to support this.

Regards

Marcel



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

end of thread, other threads:[~2009-05-14 20:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-14 20:17 Question on hci_remote_features_evt() Yu Kang Ku
2009-05-14 20:26 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox