Bluetooth: Fix hci_update_random_address() error return for no crypto
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 8 Aug 2014 06:32:48 +0000 (09:32 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2014 06:49:16 +0000 (08:49 +0200)
commitfabed38fcf456cc5d3e6946fab78855aa65bd40b
treee100fad994078208e699fd9cc50fc715a883afdc
parentd3368605591b88cd8af522adadb1c460a8f8e7bb
Bluetooth: Fix hci_update_random_address() error return for no crypto

If the AES crypto context is not available we cannot generate new RPAs.
We should therefore cleanly return an error from the function
responsible for updating the random address.

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