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:
Vinayak Kariappa Chettimada 2021-04-27 12:23:12 +05:30 committed by Carles Cufí
commit 031aa8c340

View file

@ -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);