Bluetooth: Update smp_confirm to return a response code
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 20 May 2014 06:45:52 +0000 (09:45 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 20 May 2014 15:44:14 +0000 (08:44 -0700)
commit1cc6114402f864c3d090738df355d26c1fd374bb
tree6ff9b96afc5c92cbabdbf1e5dccc062ffa226113
parent861580a970f1abe64193636eab9e5a1a7556a555
Bluetooth: Update smp_confirm to return a response code

Now that smp_confirm() is called "inline" we can have it return a
response code and have the sending of it be done in the shared place for
command handlers. One exception is when we're entering smp.c from mgmt.c
when user space responds to authentication, in which case we still need
our own code to call smp_failure().

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c