You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2019/10/21 17:55:38 UTC
[mynewt-nimble] 01/03: nimble/ll: Fix PHY_UPDATE_IND handling
This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 60fc1cd2def03d6f4682b4908d6a6e2f551a1ee5
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Mon Oct 21 14:45:55 2019 +0200
nimble/ll: Fix PHY_UPDATE_IND handling
phys fields are bitmasks, need to convert them.
---
nimble/controller/src/ble_ll_ctrl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nimble/controller/src/ble_ll_ctrl.c b/nimble/controller/src/ble_ll_ctrl.c
index dd44fe0..d00a035 100644
--- a/nimble/controller/src/ble_ll_ctrl.c
+++ b/nimble/controller/src/ble_ll_ctrl.c
@@ -2650,7 +2650,7 @@ ble_ll_ctrl_tx_done(struct os_mbuf *txpdu, struct ble_ll_conn_sm *connsm)
}
break;
case BLE_LL_CTRL_PHY_UPDATE_IND:
- connsm->phy_tx_transition = txpdu->om_data[2];
+ connsm->phy_tx_transition = ble_ll_ctrl_phy_from_phy_mask(txpdu->om_data[2]);
break;
#endif
default: