aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 232ea8bfff19..2481d257ed98 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -1858,12 +1858,13 @@ int mgmt_connectable(u16 index, u8 connectable)
1858 return ret; 1858 return ret;
1859} 1859}
1860 1860
1861int mgmt_new_key(u16 index, struct link_key *key) 1861int mgmt_new_key(u16 index, struct link_key *key, u8 persistent)
1862{ 1862{
1863 struct mgmt_ev_new_key ev; 1863 struct mgmt_ev_new_key ev;
1864 1864
1865 memset(&ev, 0, sizeof(ev)); 1865 memset(&ev, 0, sizeof(ev));
1866 1866
1867 ev.store_hint = persistent;
1867 bacpy(&ev.key.bdaddr, &key->bdaddr); 1868 bacpy(&ev.key.bdaddr, &key->bdaddr);
1868 ev.key.type = key->type; 1869 ev.key.type = key->type;
1869 memcpy(ev.key.val, key->val, 16); 1870 memcpy(ev.key.val, key->val, 16);