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 <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2020-04-08 10:58:59 +02:00 committed by Johan Hedberg
commit 0158b76096

View file

@ -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;