Bluetooth: Controller: Fix disable all advertising sets

BlueZ stack in Linux distributions use disable all
advertising sets when advertising is turned off.

Add missing implementation to support disabling all
active advertising sets.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2023-06-09 07:24:37 +05:30 committed by Anas Nashif
commit fc210a8cee
3 changed files with 13 additions and 3 deletions

View file

@ -3514,8 +3514,9 @@ static void le_set_ext_adv_enable(struct net_buf *buf, struct net_buf **evt)
return;
}
/* FIXME: Implement disable of all advertising sets */
*evt = cmd_complete_status(BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL);
status = ll_adv_disable_all();
*evt = cmd_complete_status(status);
return;
}