You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working with an nrf52833 chip and occasionally I will get spammed in logs with a malformed data warning for a few seconds before the issue disappears on its own. I haven't been able to reproduce this situation reliably and it seems to happen pretty randomly. The below function is where this warning gets logged and it seems to occur before any application callbacks are called.
// located in zephyr/subsys/bluetooth/host/hci_core.c
void bt_data_parse(struct net_buf_simple *ad,
bool (*func)(struct bt_data *data, void *user_data),
void *user_data)
{
while (ad->len > 1) {
struct bt_data data;
uint8_t len;
len = net_buf_simple_pull_u8(ad);
if (len == 0U) {
/* Early termination */
return;
}
if (len > ad->len) {
BT_WARN("Malformed data");
return;
}
data.type = net_buf_simple_pull_u8(ad);
data.data_len = len - 1;
data.data = ad->data;
if (!func(&data, user_data)) {
return;
}
net_buf_simple_pull(ad, len - 1);
}
}
Is this an issue caused by my application code or is it a result of some other device advertising something that my zephyr configuration isn't equipped to handle?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I've been working with an nrf52833 chip and occasionally I will get spammed in logs with a malformed data warning for a few seconds before the issue disappears on its own. I haven't been able to reproduce this situation reliably and it seems to happen pretty randomly. The below function is where this warning gets logged and it seems to occur before any application callbacks are called.
Is this an issue caused by my application code or is it a result of some other device advertising something that my zephyr configuration isn't equipped to handle?
Beta Was this translation helpful? Give feedback.
All reactions