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:
parent
9babac94a7
commit
00f3e44689
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue