diff --git a/features/FEATURE_BLE/ble/Gap.h b/features/FEATURE_BLE/ble/Gap.h index 53d9d8b824..ee0cf66d40 100644 --- a/features/FEATURE_BLE/ble/Gap.h +++ b/features/FEATURE_BLE/ble/Gap.h @@ -475,23 +475,6 @@ public: ADV_POLICY_FILTER_ALL_REQS = 3, }; - /** - * Scanning policy filter mode. - * - * @see Bluetooth Core Specification 4.2 (Vol. 6), Part B, Section 4.3.3. - */ - enum ScanningPolicyMode_t { - /** - * The whitelist is not used for scanning operations. - */ - SCAN_POLICY_IGNORE_WHITELIST = 0, - - /** - * The whitelist is used to filter incoming advertising. - */ - SCAN_POLICY_FILTER_ALL_ADV = 1, - }; - /** * Connection initiation policy filter mode. * @@ -580,6 +563,9 @@ public: */ typedef ble::scanning_policy_mode_t ScanningPolicyMode_t; + static const uint8_t SCAN_POLICY_IGNORE_WHITELIST = ble::SCAN_POLICY_IGNORE_WHITELIST; + static const uint8_t SCAN_POLICY_FILTER_ALL_ADV = ble::SCAN_POLICY_FILTER_ALL_ADV; + /** * Enumeration of BLE PHY */