Bluetooth: Remove old link key before reinitiating authentication
When remote device do not have link key, DUT will try to reinitiate authentication process. We should remove the link key before reinitiating authentication process. This was fixed in hciops in Bluez user space. Adding this change for mgmtops to handle this case in kernel space. CRs-fixed: 307063 Change-Id: I6a3f7ee2b73b609a663bf18b21a6852230668c29 Signed-off-by: Prabhakaran Mc <prabhakaranmc@codeaurora.org>
This commit is contained in:
committed by
Stephen Boyd
parent
912ad18e18
commit
79da2d5cf4
@@ -1745,6 +1745,7 @@ static inline void hci_auth_complete_evt(struct hci_dev *hdev, struct sk_buff *s
|
||||
if (ev->status == 0x06 && hdev->ssp_mode > 0 &&
|
||||
conn->ssp_mode > 0) {
|
||||
struct hci_cp_auth_requested cp;
|
||||
hci_remove_link_key(hdev, &conn->dst);
|
||||
cp.handle = cpu_to_le16(conn->handle);
|
||||
hci_send_cmd(conn->hdev, HCI_OP_AUTH_REQUESTED,
|
||||
sizeof(cp), &cp);
|
||||
|
||||
Reference in New Issue
Block a user