diff --git a/features/FEATURE_BLE/ble/gap/ConnectionParameters.h b/features/FEATURE_BLE/ble/gap/ConnectionParameters.h index 713288fbc0..33aeaf5c46 100644 --- a/features/FEATURE_BLE/ble/gap/ConnectionParameters.h +++ b/features/FEATURE_BLE/ble/gap/ConnectionParameters.h @@ -282,7 +282,7 @@ public: * * @return The initiator policy. */ - initiator_filter_policy_t getFilterPolicy() const + initiator_filter_policy_t getFilter() const { return _filterPolicy; } diff --git a/features/FEATURE_BLE/source/generic/GenericGap.cpp b/features/FEATURE_BLE/source/generic/GenericGap.cpp index 6998191d32..9191b55fbe 100644 --- a/features/FEATURE_BLE/source/generic/GenericGap.cpp +++ b/features/FEATURE_BLE/source/generic/GenericGap.cpp @@ -681,7 +681,7 @@ ble_error_t GenericGap::connect( return _pal_gap.create_connection( connectionParams.getScanIntervalArray()[0], connectionParams.getScanWindowArray()[0], - connectionParams.getFilterPolicy(), + connectionParams.getFilter(), (pal::connection_peer_address_type_t::type) peerAddressType.value(), peerAddress, connectionParams.getOwnAddressType(), @@ -707,7 +707,7 @@ ble_error_t GenericGap::connect( } return _pal_gap.extended_create_connection( - connectionParams.getFilterPolicy(), + connectionParams.getFilter(), connectionParams.getOwnAddressType(), adjusted_address_type, peerAddress,