Bluetooth: Fix sending DHKey event if invalid key was provided
bt_recv should be used to send event back to stack. Change-Id: I092e2480b3f0e5c40c0751c30be46d0310012bae Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
parent
b05e2dea29
commit
d7ae97de69
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ static void emulate_le_generate_dhkey(struct net_buf *buf)
|
|||
if (ecc_valid_public_key(&pk) < 0) {
|
||||
evt->status = 0x1f; /* unspecified error */
|
||||
memset(evt->dhkey, 0, sizeof(evt->dhkey));
|
||||
nano_fifo_put(&bt_dev.rx_queue, buf);
|
||||
bt_recv(buf);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue