From 026a9846c4efda28ef83f1b2d25b0168331055d0 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 21 Nov 2017 15:36:11 +0100 Subject: [PATCH] nimble/gap: Remove old experimental API for setting advertising PHY This API was only intermedient until proper API supporting multiple instances is introduced. X-Original-Commit: b332901726a72da2b5fb997c4486b9715bee0273 --- nimble/host/include/host/ble_gap.h | 5 ----- nimble/host/src/ble_gap.c | 12 ------------ 2 files changed, 17 deletions(-) diff --git a/nimble/host/include/host/ble_gap.h b/nimble/host/include/host/ble_gap.h index 0d7d50fba..4dbf3c5f5 100644 --- a/nimble/host/include/host/ble_gap.h +++ b/nimble/host/include/host/ble_gap.h @@ -683,11 +683,6 @@ int ble_gap_adv_rsp_set_data(const uint8_t *data, int data_len); int ble_gap_adv_set_fields(const struct ble_hs_adv_fields *rsp_fields); int ble_gap_adv_rsp_set_fields(const struct ble_hs_adv_fields *rsp_fields); -#if MYNEWT_VAL(BLE_EXT_ADV) -int ble_gap_adv_set_tx_power(int8_t tx_power); -int ble_gap_adv_set_phys(uint8_t primary_phy, uint8_t secondary_phy); -#endif - #if MYNEWT_VAL(BLE_EXT_ADV) struct ble_gap_ext_adv_params { unsigned int connectable:1; diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c index 0e154d61d..7d8152613 100644 --- a/nimble/host/src/ble_gap.c +++ b/nimble/host/src/ble_gap.c @@ -2355,18 +2355,6 @@ ble_gap_adv_active(void) } #if MYNEWT_VAL(BLE_EXT_ADV) -int -ble_gap_adv_set_tx_power(int8_t tx_power) -{ - return BLE_HS_ENOTSUP; -} - -int -ble_gap_adv_set_phys(uint8_t primary_phy, uint8_t secondary_phy) -{ - return BLE_HS_ENOTSUP; -} - static int ble_gap_ext_adv_params_tx(uint8_t instance, const struct ble_gap_ext_adv_params *params,