Hi Paulo, * Paulo Sérgio <paulo.sergio@xxxxxxxxxxxxx> [2012-10-25 16:55:51 -0300]: > When pairing fails due to wrong confirm value, the management layer > doesn't report a proper error status. It sends > MGMT_STATUS_CONNECT_FAILED instead of MGMT_STATUS_AUTH_FAILED. > > Most of management functions that receive a status as a parameter > expects for it to be encoded as a HCI status. But when a SMP pairing > fails, the SMP layer sends the SMP reason as the error status to the > management layer. > > This commit maps all SMP reasons to HCI_ERROR_AUTH_FAILURE, which will > be converted to MGMT_STATUS_AUTH_FAILED in the management layer. > > Reported-by: Claudio Takahasi <claudio.takahasi@xxxxxxxxxxxxx> > Reviewed-by: João Paulo Rechi Vita <jprvita@xxxxxxxxxxxxx> > Signed-off-by: Paulo Sérgio <paulo.sergio@xxxxxxxxxxxxx> > --- > > Please, disconsider the previous patch. It had a wrong commit message. > > PS: This is my first patch. > > net/bluetooth/smp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch has been applied to bluetooth.git. Thanks Gustavo -- 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