Bluetooth: Remove old_key_type from mgmt_ev_new_key
User space shouldn't have any need for the old key type so remove it from the corresponding Management interface event. Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:

committed by
Gustavo F. Padovan

parent
655fe6ece7
commit
4748fed2d1
@@ -1858,7 +1858,7 @@ int mgmt_connectable(u16 index, u8 connectable)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int mgmt_new_key(u16 index, struct link_key *key, u8 old_key_type)
|
||||
int mgmt_new_key(u16 index, struct link_key *key)
|
||||
{
|
||||
struct mgmt_ev_new_key ev;
|
||||
|
||||
@@ -1868,7 +1868,6 @@ int mgmt_new_key(u16 index, struct link_key *key, u8 old_key_type)
|
||||
ev.key.type = key->type;
|
||||
memcpy(ev.key.val, key->val, 16);
|
||||
ev.key.pin_len = key->pin_len;
|
||||
ev.old_key_type = old_key_type;
|
||||
|
||||
return mgmt_event(MGMT_EV_NEW_KEY, index, &ev, sizeof(ev), NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user