Return-Path: From: "Keren, Doron" To: victor yeo CC: "linux-bluetooth@vger.kernel.org" Subject: RE: BT LMP Date: Thu, 5 Jul 2012 10:19:19 +0000 Message-ID: <2DC28D85CE3B364AB56B408582B25C8E18E38E77@DNCE04.ent.ti.com> References: <1341472848.1963.34.camel@aeonflux> <2DC28D85CE3B364AB56B408582B25C8E18E38E2A@DNCE04.ent.ti.com> In-Reply-To: Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: > -----Original Message----- > From: victor yeo [mailto:victoryeo1974@gmail.com] > Sent: Thursday, July 05, 2012 12:10 PM > To: Keren, Doron > Cc: linux-bluetooth@vger.kernel.org > Subject: Re: BT LMP > > On Thu, Jul 5, 2012 at 4:25 PM, Keren, Doron wrote: > > Hi Victor, > > > > The LMP not_accepted event will lead to Authentication failure. > > Some devices will then initiate disconnection with error code : > > Authentication Failure error code (0x05). > > > > Thanks, > > Doron Keren > > Texas Instruments > > > >> -----Original Message----- > >> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth- > >> owner@vger.kernel.org] On Behalf Of victor yeo > >> Sent: Thursday, July 05, 2012 10:43 AM > >> To: Marcel Holtmann > >> Cc: linux-bluetooth@vger.kernel.org > >> Subject: Re: BT LMP > >> > >> Hi Marcel, > >> > >> When LMP_not_accepted is received by Bluetooth Chip's firmware, it > >> will send a HCI event to the linux kernel bluetooth portion. Do i > >> understand correctly? What is the HCI event name? > >> > >> Thanks, > >> Victor > >> > >> On Thu, Jul 5, 2012 at 3:20 PM, Marcel Holtmann > >> wrote: > >> > Hi Victor, > >> > > >> >> Anyone know which part of linux kernel processes the LMP au_rand and > >> >> LMP not_accepted event? > >> >> > >> >> I want to modify the Bluetooth kernel code so that when it receives > >> >> LMP not_accepted event, it will do re-pairing. > >> > > >> > LMP is implemented in the Bluetooth chip's firmware and not the > kernel. > >> > > >> > Regards > >> > > >> > Marcel > >> > > >> > > >> -- > > Hi Doron, > > Will the hci_auth_complete_evt() function in net/bluetooth/hci_event.c > handle the hci error code? > > Thanks, > Victor Hi Victor, As I can read in the code the hci_auth_complete_evt() call mgmt_auth_failed() on failure. The mgmt_auth_failed() function just prints The fail status number. You can add your own code to do re-pairing several times. Thanks, Doron