please reference this pr: https://github.com/apache/mynewt-nimble/pull/1125 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>