Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth: Mesh: Friend with unknown appkey #25340

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions subsys/bluetooth/mesh/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,9 +911,11 @@ static int sdu_recv_unseg(struct bt_mesh_net_rx *rx, u8_t hdr,
return 0;
}

BT_WARN("No matching AppKey");
if (rx->local_match) {
BT_WARN("No matching AppKey");
}

return -EINVAL;
return 0;
}

static int sdu_recv_seg(struct seg_rx *seg, u8_t hdr, u8_t aszmic,
Expand Down Expand Up @@ -1005,9 +1007,11 @@ static int sdu_recv_seg(struct seg_rx *seg, u8_t hdr, u8_t aszmic,
return 0;
}

BT_WARN("No matching AppKey");
if (rx->local_match) {
BT_WARN("No matching AppKey");
}

return -EINVAL;
return 0;
}

static struct seg_tx *seg_tx_lookup(u16_t seq_zero, u8_t obo, u16_t addr)
Expand Down