apache / apache/mynewt-nimble

No API to remove particular address from whitelist

Open
#1,057 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
893
Forks
512
Avg merge
13d 31m
Merged PRs (30d)
7

Description

Hi,

Currently in nimble code, there is no API to remote a particular address from whitelist. The API ble_gap_wl_set https://github.com/apache/mynewt-nimble/blob/master/nimble/host/src/ble_gap.c#L2162 can be used to remove *all* entries in whitelist if the parameter white_list_count is set to 0.

Is there any specific reason to not expose such an API ( something which can invoke a HCI command for OCF BLE_HCI_OCF_LE_RMV_WHITE_LIST ) ?

Thanks,
Rahul

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in nimble/host/src/ble_gap.c at ble_gap_wl_set and review how the existing whitelist operation handles white_list_count == 0. Trace the HCI path for BLE_HCI_OCF_LE_RMV_WHITE_LIST and determine the appropriate public API shape. Done means a caller can remove one specified address without clearing the rest of the whitelist, with behavior checked against the existing whitelist handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.