btdev: Check advertising/scanning states when changing White List
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 7 Jun 2021 17:34:29 +0000 (10:34 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
commit021c758cf83b3649dc10e2066c7b58ebab9cc840
treef07a4ca84240ab07f621d35f124b1e889bda36de
parentfe76f391d485858173d7195ca76dbd0440d0f1ef
btdev: Check advertising/scanning states when changing White List

White List cannot be changed when advertising/scanning:

• any advertising filter policy uses the White List and advertising is
enabled,
• the scanning filter policy uses the White List and scanning is
enabled, or
• the initiator filter policy uses the White List and an
HCI_LE_Create_Connection or HCI_LE_Extended_Create_Connection
command is outstanding.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
emulator/btdev.c