Return-Path: Date: Wed, 13 Jun 2012 13:04:50 +0300 From: Johan Hedberg To: Vijaykumar Dadmode Cc: "'linux-bluetooth@vger.kernel.org'" Subject: Re: Bluetooth LE scan/pair using MGMT_OPS on Ubuntu 12.04 fails. Message-ID: <20120613100450.GA4803@x220.ger.corp.intel.com> References: <20120613093544.GA3842@x220.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Vijay, On Wed, Jun 13, 2012, Vijaykumar Dadmode wrote: > On Wed, Jun 13, 2012, Vijaykumar Dadmode wrote: > > Hi, > > > > On Ubuntu 12.04 using Management OPS , when I launch the "Bluetooth New Device Setup" wizard, it does not show any device, but on console it will find LE Devices. Works good on Ubuntu 10.04. > > > > $ hcitool lescan > > Scanning ... > > 00:12:03:19:xx:yy Keyboard > > > > mgmt_start_discovery() returns write error "Unknown error 524" > > > > if (write(mgmt_sock, buf, sizeof(buf)) < 0) > > return -errno; > > >> You'd need to be more specific of exactly what kernel version and what > >> user space version of BlueZ you have. The management interface is only > >> expected to work properly with latest user space bluez.git and kernel > >> version 3.4 or later. And for LE you'll want to use the latest > >> bluetooth.git or bluetooth-next.git or wait until the 3.5 kernel gets > >> released. > > Sorry about that. Yes I am using latest from bluez.git and kernel from bluetooth-next. > > BlueZ userspace version: latest clone from "git://git.kernel.org/pub/scm/bluetooth/bluez.git". > Kernel version: 3.4.0-rc5 bluetooth-next is currently based on top of 3.5-rc1 so it seems you have an old kernel. Please do a fresh pull from the user space and kernel trees and try again. Johan