diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index 9ec63fb987a..de812fd732f 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -3271,7 +3271,7 @@ static void le_pkey_complete(struct net_buf *buf) } for (cb = pub_key_cb; cb; cb = cb->_next) { - cb->func(evt->status ? NULL : evt->key); + cb->func(evt->status ? NULL : pub_key); } pub_key_cb = NULL;