Bluetooth: Controller: Fix missing endianness conversion in scan_enable

Both duration and period are uint16 and thus require endianness conversion

Signed-off-by: Troels Nilsson <trnn@demant.com>
This commit is contained in:
Troels Nilsson 2023-07-19 11:00:02 +02:00 committed by Carles Cufí
commit 00f3e44689

View file

@ -3830,7 +3830,8 @@ static void le_set_ext_scan_enable(struct net_buf *buf, struct net_buf **evt)
}
#endif /* CONFIG_BT_CTLR_DUP_FILTER_LEN > 0 */
status = ll_scan_enable(cmd->enable, cmd->duration, cmd->period);
status = ll_scan_enable(cmd->enable, sys_le16_to_cpu(cmd->duration),
sys_le16_to_cpu(cmd->period));
/* NOTE: As filter duplicates is implemented here in HCI source code,
* enabling of already enabled scanning shall succeed after