RE: BT LMP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: victor yeo [mailto:victoryeo1974@xxxxxxxxx]
> Sent: Thursday, July 05, 2012 12:10 PM
> To: Keren, Doron
> Cc: linux-bluetooth@xxxxxxxxxxxxxxx
> Subject: Re: BT LMP
> 
> On Thu, Jul 5, 2012 at 4:25 PM, Keren, Doron <doronkeren@xxxxxx> 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@xxxxxxxxxxxxxxx [mailto:linux-bluetooth-
> >> owner@xxxxxxxxxxxxxxx] On Behalf Of victor yeo
> >> Sent: Thursday, July 05, 2012 10:43 AM
> >> To: Marcel Holtmann
> >> Cc: linux-bluetooth@xxxxxxxxxxxxxxx
> >> 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 <marcel@xxxxxxxxxxxx>
> >> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux