Bluetooth: Restrict loading of long term keys to LE capable controllers
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Oct 2013 04:16:08 +0000 (21:16 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 3 Oct 2013 06:33:02 +0000 (09:33 +0300)
commitcf99ba1359701ce82e756368513ddd0c5a7164ba
tree225f1ce672e6a590f9fbd8d44d6a897da5c27be7
parent9060d5cf5200c37dd23f5502bd7c3ccadce04a5f
Bluetooth: Restrict loading of long term keys to LE capable controllers

Loading long term keys into a BR/EDR only controller make no sense.
The kernel would never use any of these keys. So instead of allowing
userspace to waste memory, reject such operation with a not supported
error message.

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