BLuetooth: Controller: llcp: Fix wrong conditions in remote CTE req
There were wrong conditions in rp_comm_tx function for CTE request that vefiry if: - PHY is allowed one, - CTE length is within allowed value. The commit fixes it. Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
This commit is contained in:
parent
c5812bab5e
commit
c50b474e01
1 changed files with 2 additions and 2 deletions
|
@ -748,12 +748,12 @@ static void rp_comm_tx(struct ll_conn *conn, struct proc_ctx *ctx)
|
||||||
/* If the PHY update is not possible, then PHY1M is used.
|
/* If the PHY update is not possible, then PHY1M is used.
|
||||||
* CTE is supported for PHY1M.
|
* CTE is supported for PHY1M.
|
||||||
*/
|
*/
|
||||||
if (conn->lll.phy_tx != PHY_CODED) {
|
if (conn->lll.phy_tx == PHY_CODED) {
|
||||||
err_code = BT_HCI_ERR_INVALID_LL_PARAM;
|
err_code = BT_HCI_ERR_INVALID_LL_PARAM;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_BT_PHY_UPDATE */
|
#endif /* CONFIG_BT_PHY_UPDATE */
|
||||||
if (!(conn->llcp.cte_rsp.cte_types & BIT(conn->llcp.cte_req.cte_type)) &&
|
if (!(conn->llcp.cte_rsp.cte_types & BIT(conn->llcp.cte_req.cte_type)) &&
|
||||||
conn->llcp.cte_rsp.max_cte_len >= conn->llcp.cte_req.min_cte_len) {
|
conn->llcp.cte_rsp.max_cte_len < conn->llcp.cte_req.min_cte_len) {
|
||||||
err_code = BT_HCI_ERR_UNSUPP_LL_PARAM_VAL;
|
err_code = BT_HCI_ERR_UNSUPP_LL_PARAM_VAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue