rymanluk closed pull request #786: nimble/ll: Fix for disconnection with LL
response timeout with one vendor
URL: https://github.com/apache/mynewt-core/pull/786
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/net/nimble/controller/src/ble_ll_ctrl.c
b/net/nimble/controller/src/ble_ll_ctrl.c
index 072b5d7e9..a528eaae7 100644
--- a/net/nimble/controller/src/ble_ll_ctrl.c
+++ b/net/nimble/controller/src/ble_ll_ctrl.c
@@ -1444,6 +1444,13 @@ ble_ll_ctrl_rx_reject_ind(struct ble_ll_conn_sm *connsm,
uint8_t *dptr,
ble_ll_ctrl_proc_stop(connsm, BLE_LL_CTRL_PROC_PHY_UPDATE);
break;
#endif
+ case BLE_LL_CTRL_PROC_DATA_LEN_UPD:
+ /* That should not happen according to Bluetooth 5.0 Vol6 Part B, 5.1.9
+ * However we need this workaround as there are devices on the market
+ * which do send LL_REJECT on LL_LENGTH_REQ when collision happens
+ */
+ ble_ll_ctrl_proc_stop(connsm, BLE_LL_CTRL_PROC_DATA_LEN_UPD);
+ break;
default:
break;
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services