Thread (21 messages) 21 messages, 3 authors, 2012-01-31

Re: [PATCH v3 5/6] Bluetooth: MGMT start discovery LE-Only support

From: Andre Guedes <hidden>
Date: 2012-01-26 13:05:28

Hi Lizardo,

On Thu, Jan 26, 2012 at 9:55 AM, Anderson Lizardo
[off-list ref] wrote:
Hi Andre,

On Wed, Jan 25, 2012 at 6:52 PM, Andre Guedes
[off-list ref] wrote:
quoted
- =A0 =A0 =A0 err =3D hci_do_inquiry(hdev, INQUIRY_LEN_BREDR);
+ =A0 =A0 =A0 if (test_bit(MGMT_ADDR_BREDR, &discov_type))
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 err =3D hci_do_inquiry(hdev, INQUIRY_LEN_B=
REDR);
quoted
+ =A0 =A0 =A0 else if (test_bit(MGMT_ADDR_LE_PUBLIC, &discov_type) &&
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 test_bit(M=
GMT_ADDR_LE_RANDOM, &discov_type))
Should it be "||" in the line above?
mgmt-api.txt says both bits should be set.
quoted
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 err =3D hci_le_scan(hdev, LE_SCAN_TYPE, LE=
_SCAN_INT,
quoted
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 LE_SCAN_WIN, LE_SCAN_TIMEOUT_LE_ONLY);
quoted
+ =A0 =A0 =A0 else
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 err =3D -EINVAL;
+
=A0 =A0 =A0 =A0if (err < 0)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0mgmt_pending_remove(cmd);
=A0 =A0 =A0 =A0else
--
1.7.8.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetoot=
h" in
quoted
the body of a message to majordomo@vger.kernel.org
More majordomo info at =A0http://vger.kernel.org/majordomo-info.html

Regards,
--
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help