Return-Path: MIME-Version: 1.0 In-Reply-To: <50C3F088.2090203@globaledgesoft.com> References: <508D6672.8000009@globaledgesoft.com> <508DCE10.40801@globaledgesoft.com> <508DDCE7.6030708@globaledgesoft.com> <50BE45BB.409@globaledgesoft.com> <50C3F088.2090203@globaledgesoft.com> Date: Mon, 10 Dec 2012 11:18:16 -0400 Message-ID: Subject: Re: BLE issue: Start_LE_Encryption fails From: Anderson Lizardo To: Ajay Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi, On Sat, Dec 8, 2012 at 9:59 PM, Ajay wrote: > I tried "gatttool -i hci0 -b --primary " on master > side ,which creates LE link and very next moment disconnects . How can i > change the security level of the link to medium?. still struggling to pair > the device (atleast "smp just works") ) . Is my kernel supportive (3.2.5) You can try using the --sec-level medium option. > Every time on LE create connection process i > ,smp_conn_security() getting called from hci layer . > But if(host_le_capable(hcon->hdev)) > return 1; > condition returns without even checking the security level . so kindly show > me the right way.. I suspect this check has been added recently to the kernel. Try running bluetoothd oh the master side as well, it should then enable host LE support through mgmt API and this check should pass. Regards, -- Anderson Lizardo Instituto Nokia de Tecnologia - INdT Manaus - Brazil