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

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

From: Anderson Lizardo <hidden>
Date: 2012-01-26 12:55:14

Hi Andre,

On Wed, Jan 25, 2012 at 6:52 PM, Andre Guedes
[off-list ref] wrote:
- =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_BR=
EDR);
+ =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(MG=
MT_ADDR_LE_RANDOM, &discov_type))

Should it be "||" in the line above?
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 err =3D hci_le_scan(hdev, LE_SCAN_TYPE, LE_=
SCAN_INT,
+ =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);
+ =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-bluetooth=
" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at =A0http://vger.kernel.org/majordomo-info.html

Regards,
--=20
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