Bluetooth: controller: Fix Conn Param Req procedure stall issue

Fix an issue wherein local or remote initiated Connection
Parameter Request procedure would stall without generation
of LE Connection Update Complete HCI event because a local
or remote initiated PHY Update procedure has overwritten the
currently active Link Layer Control Procedure type.

Signed-off-by: Vinayak Kariappa Chettimada <vinayak.kariappa@gmail.com>
This commit is contained in:
Vinayak Kariappa Chettimada 2018-12-17 19:06:35 +01:00 committed by Carles Cufí
commit 99ae80b632

View file

@ -7900,6 +7900,11 @@ static inline void event_phy_req_prep(struct connection *conn)
case LLCP_PHY_STATE_UPD:
{
/* Defer if another procedure in progress */
if (conn->llcp_ack != conn->llcp_req) {
return;
}
/* Procedure complete */
conn->llcp_phy.ack = conn->llcp_phy.req;