Bluetooth: controller: Fix ChSel bit be not used in ADV_EXT_IND
Only ADV_IND, ADV_DIRECT_IND, and CONNECT_IND PDUs can have ChSel bit set in Advertising channel. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
7d075f527b
commit
0a1efac161
1 changed files with 3 additions and 7 deletions
|
@ -117,9 +117,7 @@ u32_t ll_adv_params_set(u16_t interval, u8_t adv_type,
|
|||
|
||||
if (IS_ENABLED(CONFIG_BLUETOOTH_CONTROLLER_CHAN_SEL_2) &&
|
||||
((pdu->type == PDU_ADV_TYPE_ADV_IND) ||
|
||||
(pdu->type == PDU_ADV_TYPE_DIRECT_IND) ||
|
||||
(IS_ENABLED(CONFIG_BLUETOOTH_CONTROLLER_ADV_EXT) &&
|
||||
(pdu->type == PDU_ADV_TYPE_EXT_IND)))) {
|
||||
(pdu->type == PDU_ADV_TYPE_DIRECT_IND))) {
|
||||
pdu->chan_sel = 1;
|
||||
} else {
|
||||
pdu->chan_sel = 0;
|
||||
|
@ -266,10 +264,8 @@ void ll_adv_data_set(u8_t len, u8_t const *const data)
|
|||
pdu->type = prev->type;
|
||||
pdu->rfu = 0;
|
||||
|
||||
if (IS_ENABLED(CONFIG_BLUETOOTH_CONTROLLER_CHAN_SEL_2) &&
|
||||
((pdu->type == PDU_ADV_TYPE_ADV_IND) ||
|
||||
(pdu->type == PDU_ADV_TYPE_DIRECT_IND))) {
|
||||
pdu->chan_sel = 1;
|
||||
if (IS_ENABLED(CONFIG_BLUETOOTH_CONTROLLER_CHAN_SEL_2)) {
|
||||
pdu->chan_sel = prev->chan_sel;
|
||||
} else {
|
||||
pdu->chan_sel = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue