Bluetooth: controller: Fix DLE event on PHY update

Fix HCI Data Length Update event generation on PHY update
procedure, i.e. preserve Data Length Parameters on PHY
update.

Fixes BT LL.TS.5.1.1 tests:
LL/CON/MAS/BV-126-C
LL/CON/MAS/BV-127-C
LL/CON/SLA/BV-129-C
LL/CON/SLA/BV-130-C

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2019-09-20 10:30:50 +05:30 committed by Alberto Escolar
commit f965b9c685

View file

@ -8732,8 +8732,8 @@ static inline void event_phy_upd_ind_prep(struct connection *conn,
#if defined(CONFIG_BT_CTLR_DATA_LENGTH)
/* Update max tx and/or max rx if changed */
if ((eff_tx_time == conn->max_tx_time) &&
(eff_rx_time == conn->max_rx_time)) {
if ((eff_tx_time <= conn->max_tx_time) &&
(eff_rx_time <= conn->max_rx_time)) {
return;
}
conn->max_tx_time = eff_tx_time;