Skip to contentSkip to conversation

Question on hci_remote_features_evt()

DISCUSSION Yu Kang Ku 2 participants 2 messages May 14, 2009 Bluetooth drivers

lore
Share & tools
lore

Yu Kang Ku

author
#0 lore raw

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

maintainer
#1 lore raw

Hi Kang,

Quoted 12 lines

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);
}
Quoted 1 line

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