Bluetooth: Controller: Fix observer filter_policy field size
Coverity analysis discovered that observer filter policy field was 1 bit, whereas valid range for extended scanner filter policy feature implemented in controller is 0 to 3. Increase the bit field size from 1 to 2. Change-Id: Id4b2e354961dfb3b45f72fa4e0ab18de7425bbb5 Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
This commit is contained in:
parent
a2ee111aa0
commit
7b1c042b02
1 changed files with 1 additions and 2 deletions
|
@ -105,10 +105,9 @@ struct observer {
|
|||
uint8_t scan_type:1;
|
||||
uint8_t scan_state:1;
|
||||
uint8_t scan_channel:2;
|
||||
uint8_t filter_policy:1;
|
||||
uint8_t filter_policy:2;
|
||||
uint8_t adv_addr_type:1;
|
||||
uint8_t init_addr_type:1;
|
||||
uint8_t rfu0:1;
|
||||
|
||||
uint8_t adv_addr[BDADDR_SIZE];
|
||||
uint8_t init_addr[BDADDR_SIZE];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue