From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <1356011977.29264.5.camel@aeonflux> Subject: Re: Question for setting IO capability parameter for RegisterAgent From: Marcel Holtmann To: Johan Hedberg Cc: Xian Pan , linux-bluetooth@vger.kernel.org Date: Thu, 20 Dec 2012 14:59:37 +0100 In-Reply-To: <20121220075542.GA32641@x220> References: <679160B2-3B1E-4D5E-978E-E3358F6126E9@gmail.com> <20121220075542.GA32641@x220> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Johan, > > I confuse the relationship between the 4 pairing mode in SSP with the > > IO capability parameter for the agent. From the agent-api.txt file, > > the capability parameter can have 5 values: DisplayOnly, DisplayYesNo, > > KeyboardOnly, NoInputNoOutput and KeyboardDisplay. I think there are > > only 4 pairing mode in SSP: just works, numeric comparison, out of > > band, and passkey entry. How the 5 IO capabilities can map to those 4 > > pairing modes? > > Low Energy SMP based pairing introduces the additional KeyboardDisplay > IO capability. If you want to support LE it's recommended you provide > that as your agent capability and BlueZ will then automatically > downgrade it to DisplayYesNo for BR/EDR (SSP) pairing and use it as is > for LE SMP pairing. we should mention that in the documentation. And additionally that "" maps to DisplayYesNo for BR/EDR and KeyboardDisplay for LE. Regards Marcel