mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-07-28 05:47:45 +00:00
nimble/ll: Rename feature flags related with sync transfer
This patch changes name of two features related to sync transfer: BLE_LL_FEAT_SYNC_SEND -> BLE_LL_FEAT_SYNC_TRANS_SEND BLE_LL_FEAT_SYNC_RECV ->BLE_LL_FEAT_SYNC_TRANS_RECV as there is new feature call BLE_LL_FEAT_SYNC_RECV (Synchronizer receiver) added in following patch
This commit is contained in:
@@ -223,8 +223,8 @@ extern STATS_SECT_DECL(ble_ll_stats) ble_ll_stats;
|
||||
#define BLE_LL_FEAT_CTE_AOD (0x00200000)
|
||||
#define BLE_LL_FEAT_CTE_AOA (0x00400000)
|
||||
#define BLE_LL_FEAT_CTE_RECV (0x00800000)
|
||||
#define BLE_LL_FEAT_SYNC_SEND (0x01000000)
|
||||
#define BLE_LL_FEAT_SYNC_RECV (0x02000000)
|
||||
#define BLE_LL_FEAT_SYNC_TRANS_SEND (0x01000000)
|
||||
#define BLE_LL_FEAT_SYNC_TRANS_RECV (0x02000000)
|
||||
#define BLE_LL_FEAT_SCA_UPDATE (0x04000000)
|
||||
#define BLE_LL_FEAT_REM_PKEY (0x08000000)
|
||||
|
||||
|
||||
@@ -1631,8 +1631,8 @@ ble_ll_init(void)
|
||||
#endif
|
||||
|
||||
#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_PERIODIC_ADV_SYNC_TRANSFER)
|
||||
features |= BLE_LL_FEAT_SYNC_RECV;
|
||||
features |= BLE_LL_FEAT_SYNC_SEND;
|
||||
features |= BLE_LL_FEAT_SYNC_TRANS_RECV;
|
||||
features |= BLE_LL_FEAT_SYNC_TRANS_SEND;
|
||||
#endif
|
||||
|
||||
/* Initialize random number generation */
|
||||
|
||||
@@ -3946,7 +3946,7 @@ ble_ll_adv_periodic_set_info_transfer(const uint8_t *cmdbuf, uint8_t len,
|
||||
*
|
||||
* Allow initiate LL procedure only if remote supports it.
|
||||
*/
|
||||
if (!(connsm->remote_features[2] & (BLE_LL_FEAT_SYNC_RECV >> (8 * 3)))) {
|
||||
if (!(connsm->remote_features[2] & (BLE_LL_FEAT_SYNC_TRANS_RECV >> (8 * 3)))) {
|
||||
rc = BLE_ERR_UNSUPP_REM_FEATURE;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@@ -2416,7 +2416,7 @@ ble_ll_ctrl_rx_pdu(struct ble_ll_conn_sm *connsm, struct os_mbuf *om)
|
||||
feature = BLE_LL_FEAT_MIN_USED_CHAN;
|
||||
break;
|
||||
case BLE_LL_CTRL_PERIODIC_SYNC_IND:
|
||||
feature = BLE_LL_FEAT_SYNC_RECV;
|
||||
feature = BLE_LL_FEAT_SYNC_TRANS_RECV;
|
||||
break;
|
||||
default:
|
||||
feature = 0;
|
||||
|
||||
@@ -2166,7 +2166,7 @@ ble_ll_sync_transfer(const uint8_t *cmdbuf, uint8_t len,
|
||||
*
|
||||
* Allow initiate LL procedure only if remote supports it.
|
||||
*/
|
||||
if (!(connsm->remote_features[2] & (BLE_LL_FEAT_SYNC_RECV >> (8 * 3)))) {
|
||||
if (!(connsm->remote_features[2] & (BLE_LL_FEAT_SYNC_TRANS_RECV >> (8 * 3)))) {
|
||||
rc = BLE_ERR_UNSUPP_REM_FEATURE;
|
||||
goto done;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user