Skip to content

Commit 303ff3d

Browse files
committed
Bluetooth: Controller: Use BT_HCI_ERR_UNSPECIFIED as needed
A Host shall consider any error code that it does not explicitly understand equivalent to the error code Unspecified Error (0x1F). Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent a5b3a14 commit 303ff3d

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/controller/hci

1 file changed

+1
-1
lines changed

subsys/bluetooth/controller/hci/hci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6330,7 +6330,7 @@ static void encrypt_change(uint8_t err, uint16_t handle,
63306330
hci_evt_create(buf, BT_HCI_EVT_ENCRYPT_CHANGE, sizeof(*ep));
63316331
ep = net_buf_add(buf, sizeof(*ep));
63326332

6333-
ep->status = err;
6333+
ep->status = err ? err : (encryption_on ? err : BT_HCI_ERR_UNSPECIFIED);
63346334
ep->handle = sys_cpu_to_le16(handle);
63356335
ep->encrypt = encryption_on ? 1 : 0;
63366336
}

0 commit comments

Comments
 (0)