X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fbluetooth%2Fhci_event.c;h=15010a230b6d5fdf08bb9cd91d7b0ac5aee25c61;hb=39b47b599e417afc7b94dcdf248457f3e45dc17c;hp=49774912cb01f23ef6f85cb26f8613f538edec94;hpb=740c699a8d316c8bf8593f19e2ca47795e690622;p=karo-tx-linux.git diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 49774912cb01..15010a230b6d 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -3330,6 +3330,12 @@ static void hci_key_refresh_complete_evt(struct hci_dev *hdev, if (!conn) goto unlock; + /* For BR/EDR the necessary steps are taken through the + * auth_complete event. + */ + if (conn->type != LE_LINK) + goto unlock; + if (!ev->status) conn->sec_level = conn->pending_sec_level;