Skip to content
Permalink
Browse files

Bluetooth: controller: split: Fix PHY update proc symmetric rsp

Fix PHY update procedure to correctly handle master
requesting asymmetrical and slave symmetrical.

Fixes BT LL TS 5.1.0 conformance test:
LL/CON/MAS/BV-117-C [PHY Update Procedure - Master
Requests Asymmetrical, Slave Symmetrical]

Relates to #17097.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
  • Loading branch information...
cvinayak authored and carlescufi committed Jul 16, 2019
1 parent ae8628d commit a081e001b06eb960f354e80240501d7881a0a3b7
Showing with 10 additions and 0 deletions.
  1. +10 −0 subsys/bluetooth/controller/ll_sw/ull_conn.c
@@ -5246,6 +5246,11 @@ static inline int ctrl_rx(memq_link_t *link, struct node_rx_pdu **rx,
conn->llcp_phy.tx &= p->rx_phys;
conn->llcp_phy.rx &= p->tx_phys;

if (!conn->llcp_phy.tx || !conn->llcp_phy.rx) {
conn->llcp_phy.tx = 0;
conn->llcp_phy.rx = 0;
}

/* pause data packet tx */
conn->llcp_phy.pause_tx = 1U;

@@ -5274,6 +5279,11 @@ static inline int ctrl_rx(memq_link_t *link, struct node_rx_pdu **rx,
conn->llcp_phy.tx &= p->rx_phys;
conn->llcp_phy.rx &= p->tx_phys;

if (!conn->llcp_phy.tx || !conn->llcp_phy.rx) {
conn->llcp_phy.tx = 0;
conn->llcp_phy.rx = 0;
}

/* pause data packet tx */
conn->llcp_phy.pause_tx = 1U;

0 comments on commit a081e00

Please sign in to comment.
You can’t perform that action at this time.