Return-Path: MIME-Version: 1.0 In-Reply-To: <1327531949-29463-6-git-send-email-andre.guedes@openbossa.org> References: <1327531949-29463-1-git-send-email-andre.guedes@openbossa.org> <1327531949-29463-6-git-send-email-andre.guedes@openbossa.org> Date: Thu, 26 Jan 2012 08:55:14 -0400 Message-ID: Subject: Re: [PATCH v3 5/6] Bluetooth: MGMT start discovery LE-Only support From: Anderson Lizardo To: Andre Guedes Cc: linux-bluetooth@vger.kernel.org, marcel@holtmann.org Content-Type: text/plain; charset=ISO-8859-1 List-ID: Hi Andre, On Wed, Jan 25, 2012 at 6:52 PM, Andre Guedes 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