Skip to content

Commit

Permalink
Bluetooth: controller: split: Fix PHY update proc symmetric rsp
Browse files Browse the repository at this point in the history
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 zephyrproject-rtos#17097.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
  • Loading branch information
cvinayak committed Jul 16, 2019
1 parent 8401fda commit 2f1f7dd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions subsys/bluetooth/controller/ll_sw/ull_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -5243,6 +5243,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;

Expand Down Expand Up @@ -5271,6 +5276,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;

Expand Down

0 comments on commit 2f1f7dd

Please sign in to comment.