Skip to content

Commit

Permalink
pkg/nimble: Ignore bogus adv. during scan
Browse files Browse the repository at this point in the history
  • Loading branch information
Teufelchen1 committed Apr 8, 2024
1 parent 8bb8c5b commit e5f4e35
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/nimble/scanlist/nimble_scanlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ void nimble_scanlist_update(uint8_t type, const ble_addr_t *addr,
const uint8_t *ad, size_t len)
{
assert(addr);
assert(len <= BLE_ADV_PDU_LEN);

/* Ignore bogus advertisments */

Check failure on line 75 in pkg/nimble/scanlist/nimble_scanlist.c

View workflow job for this annotation

GitHub Actions / static-tests

There is a typo: advertisments ==> advertisements If this is a false positive, add it to dist/tools/codespell/ignored_words.txt. You can fix this interactively by calling CODESPELL_INTERACTIVE=1 BASE_BRANCH=master ./dist/tools/codespell/check.sh
if (len > BLE_ADV_PDU_LEN) {
assert(0);
return;
}

uint32_t now = (uint32_t)ztimer_now(ZTIMER_USEC);
nimble_scanlist_entry_t *e = _find(addr);
Expand Down

0 comments on commit e5f4e35

Please sign in to comment.