summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/mgmt.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2011-04-28 11:29:03 -0700
committerGustavo F. Padovan <padovan@profusion.mobi>2011-04-28 16:14:43 -0300
commit4df378a10e31698df1679f3329301d773a654b61 (patch)
tree033d9f8267801fd657339fd0299c96979556930f /include/net/bluetooth/mgmt.h
parent4748fed2d1a2a7a816277754498b8aa70850e051 (diff)
downloadop-kernel-dev-4df378a10e31698df1679f3329301d773a654b61.zip
op-kernel-dev-4df378a10e31698df1679f3329301d773a654b61.tar.gz
Bluetooth: Add store_hint parameter to mgmt_new_key
Even for keys that shouldn't be stored some use cases require the knowledge of a new key having been created so that the conclusion of a successful pairing can be made. Therefore, always send the mgmt_new_key event but add a store_hint parameter to it to indicate to user space whether the key should be stored or not. Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth/mgmt.h')
-rw-r--r--include/net/bluetooth/mgmt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index 353a85d..4899286 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -230,6 +230,7 @@ struct mgmt_ev_controller_error {
#define MGMT_EV_NEW_KEY 0x000A
struct mgmt_ev_new_key {
+ __u8 store_hint;
struct mgmt_key_info key;
} __packed;
OpenPOWER on IntegriCloud