Bluetooth: controller: Ensure only initiating on selected PHY
Reset the scanning context for the PHY not selected in the Extended Create Connection command. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
0b04dd7221
commit
031aa8c340
1 changed files with 13 additions and 5 deletions
|
@ -3141,12 +3141,20 @@ static void le_ext_create_connection(struct net_buf *buf, struct net_buf **evt)
|
|||
conn_latency,
|
||||
supervision_timeout,
|
||||
phy);
|
||||
if (status) {
|
||||
*evt = cmd_status(status);
|
||||
return;
|
||||
}
|
||||
|
||||
p++;
|
||||
} else {
|
||||
uint8_t type;
|
||||
|
||||
type = (phy << 1);
|
||||
/* NOTE: Pass invalid interval value to not start
|
||||
* scanning using this scan instance.
|
||||
*/
|
||||
status = ll_scan_params_set(type, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
if (status) {
|
||||
*evt = cmd_status(status);
|
||||
return;
|
||||
}
|
||||
|
||||
phys_bitmask &= (phys_bitmask - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue