mirror of
https://github.com/espressif/openthread.git
synced 2026-07-26 13:59:05 +00:00
[discover-scanner] allow filtering based on a user given bloom filter indexes (#5075)
This commit enhances the filtering behavior of Discover Scan. When filtering is enabled, MLE Discovery Responses with steering data (bloom filter) not containing a set of bloom filter indexes are filtered. This commit updates the `DiscoverScanner::Discover()` to allow filter indexes used for filtering to be optionally specified by the caller. It can be set to NULL (for default behavior) where the hash of factory-assigned EUI64 of the device would be used to derive the bloom filter indexes
This commit is contained in:
committed by
Jonathan Hui
parent
6094db2b96
commit
55785040c9
@@ -457,8 +457,9 @@ otError otThreadDiscover(otInstance * aInstance,
|
||||
{
|
||||
Instance &instance = *static_cast<Instance *>(aInstance);
|
||||
|
||||
return instance.Get<Mle::DiscoverScanner>().Discover(static_cast<Mac::ChannelMask>(aScanChannels), aPanId, aJoiner,
|
||||
aEnableEui64Filtering, aCallback, aCallbackContext);
|
||||
return instance.Get<Mle::DiscoverScanner>().Discover(
|
||||
static_cast<Mac::ChannelMask>(aScanChannels), aPanId, aJoiner, aEnableEui64Filtering,
|
||||
/* aFilterIndexes (use hash of factory EUI64) */ NULL, aCallback, aCallbackContext);
|
||||
}
|
||||
|
||||
bool otThreadIsDiscoverInProgress(otInstance *aInstance)
|
||||
|
||||
Reference in New Issue
Block a user