You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2021/10/17 11:18:15 UTC

[GitHub] [mynewt-nimble] rahult-github opened a new issue #1057: No API to remove address from whitelist

rahult-github opened a new issue #1057:
URL: https://github.com/apache/mynewt-nimble/issues/1057


   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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-nimble] andrzej-kaczmarek commented on issue #1057: No API to remove particular address from whitelist

Posted by GitBox <gi...@apache.org>.
andrzej-kaczmarek commented on issue #1057:
URL: https://github.com/apache/mynewt-nimble/issues/1057#issuecomment-945096453


   I'd say this is for historical reasons and I agree it's not very convenient :)
   As you pointed out, there's only API to set whitelist contents (all at once) so basically what you should do is to keep track of wl entries in app and update via that API if necessary, i.e. in your scenario remove address from local list in app and update wl with remaining entries.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org