Bluetooth: Controller: Permit enabling already enabled advertising

Permit enabling already enabled advertising. Enabling
advertising when it is already enabled can cause the
random address to change, as specified in the Bluetooth
Specifications.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2021-06-22 12:03:23 +05:30 committed by Christopher Friedt
commit e82fcb070a
2 changed files with 101 additions and 4 deletions

View file

@ -238,6 +238,13 @@ config BT_CTLR_SCAN_SYNC_ISO_SET
help
Maximum supported broadcast isochronous groups (BIGs) sync sets.
config BT_CTLR_ADV_ENABLE_STRICT
bool "Enforce Strict Advertising Enable/Disable"
depends on BT_BROADCASTER
help
Enforce returning HCI Error Command Disallowed on enabling/disabling
already enabled/disabled advertising.
config BT_CTLR_SCAN_ENABLE_STRICT
bool "Enforce Strict Scan Enable/Disable"
depends on BT_OBSERVER