Bluetooth: controller: split: Fix HCI LE Add Device to Whitelist
According to BT Spec v5.1 Vol 2 Part E Section 7.8.16, if the device is already in the White List, the controller should not add the device to the White List and should return success. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
09f7364cf8
commit
5f10154724
1 changed files with 1 additions and 1 deletions
|
@ -785,7 +785,7 @@ static u32_t wl_add(bt_addr_le_t *id_addr)
|
|||
|
||||
/* Duplicate check */
|
||||
if (i < ARRAY_SIZE(wl)) {
|
||||
return BT_HCI_ERR_INVALID_PARAM;
|
||||
return 0;
|
||||
} else if (j >= ARRAY_SIZE(wl)) {
|
||||
return BT_HCI_ERR_MEM_CAPACITY_EXCEEDED;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue