From 0158b76096c8988ee5920aa2a50e451117970550 Mon Sep 17 00:00:00 2001 From: Joakim Andersson Date: Wed, 8 Apr 2020 10:58:59 +0200 Subject: [PATCH] Bluetooth: host: Fix scan filter_dup parameter on big endian systems Fix filter_dup and options in union with mixed size integral types, this is not portable, and causes malfunction on big-endian systems. Signed-off-by: Joakim Andersson --- include/bluetooth/bluetooth.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bluetooth/bluetooth.h b/include/bluetooth/bluetooth.h index 02865cdd99a..8028ff6bcb0 100644 --- a/include/bluetooth/bluetooth.h +++ b/include/bluetooth/bluetooth.h @@ -747,7 +747,7 @@ struct bt_le_scan_param { union { /** Bit-field of scanning filter options. */ - u8_t filter_dup __deprecated; + u32_t filter_dup __deprecated; /** Bit-field of scanning options. */ u32_t options;