From f83cfe20247057717be87845202d7e7376f4c36f Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Sun, 24 Sep 2017 23:23:33 +0200 Subject: [PATCH] nimble/ll: Fix setting default phy prefs With no preference from host, we should set 'all' instead of 'none' :) X-Original-Commit: 13e4d7e4089be90c5d9ebd841e7801968112f3ef --- nimble/controller/src/ble_ll_hci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nimble/controller/src/ble_ll_hci.c b/nimble/controller/src/ble_ll_hci.c index df7d69067..b3d99af24 100644 --- a/nimble/controller/src/ble_ll_hci.c +++ b/nimble/controller/src/ble_ll_hci.c @@ -328,11 +328,11 @@ ble_ll_hci_chk_phy_masks(uint8_t *cmdbuf, uint8_t *txphy, uint8_t *rxphy) #endif /* Set the default PHY preferences */ if (all_phys & BLE_HCI_LE_PHY_NO_TX_PREF_MASK) { - tx_phys = 0; + tx_phys = BLE_HCI_LE_PHY_PREF_MASK_ALL; } *txphy = tx_phys; if (all_phys & BLE_HCI_LE_PHY_NO_RX_PREF_MASK) { - rx_phys = 0; + rx_phys = BLE_HCI_LE_PHY_PREF_MASK_ALL; } *rxphy = rx_phys; rc = BLE_ERR_SUCCESS;