Bluetooth: controller: Fix accept scan en/disable if already en/disabled

Conform to Bluetooth Specification, if the LE_Scan_Enable
parameter is set to 0x01 and scanning is already enabled,
any change to the Filter_Duplicates setting shall take
effect. Disabling scanning when it is disabled has no
effect.

Fixes #31019.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2021-01-22 18:25:48 +05:30 committed by Anas Nashif
commit 1afbe0770c
2 changed files with 17 additions and 0 deletions

View file

@ -201,6 +201,13 @@ config BT_CTLR_SCAN_SYNC_ISO_SET
help
Maximum supported broadcast isochronous groups (BIGs) sync sets.
config BT_CTLR_SCAN_ENABLE_STRICT
bool "Enforce Strict Scan Enable/Disable"
depends on BT_OBSERVER
help
Enforce returning HCI Error Command Disallowed on enabling/disabling
already enabled/disabled scanning.
config BT_CTLR_ZLI
bool "Use Zero Latency IRQs"
depends on ZERO_LATENCY_IRQS