This is an automated email from the ASF dual-hosted git repository. andk pushed a commit to branch new-master in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit d7fc4a5a1157006921aa1ffd61482cfdcb939728 Author: MichaĆ Narajowski <michal.narajow...@codecoup.pl> AuthorDate: Tue Feb 20 14:24:57 2018 +0100 mesh: Fix sending Provisioning Failed for PB-GATT In the case of an unexpected PDU we need to send the right response. This was already taken care of for PB-ADV, but not for PB-GATT. X-Original-Commit: 65b2467d6192e9bd943a3f898132775984d6b871 --- nimble/host/mesh/src/prov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nimble/host/mesh/src/prov.c b/nimble/host/mesh/src/prov.c index 04cab17..07d3d02 100644 --- a/nimble/host/mesh/src/prov.c +++ b/nimble/host/mesh/src/prov.c @@ -1477,6 +1477,7 @@ int bt_mesh_pb_gatt_recv(uint16_t conn_handle, struct os_mbuf *buf) type = net_buf_simple_pull_u8(buf); if (type != PROV_FAILED && type != link.expect) { BT_WARN("Unexpected msg 0x%02x != 0x%02x", type, link.expect); + prov_send_fail_msg(PROV_ERR_UNEXP_PDU); return -EINVAL; } -- To stop receiving notification emails like this one, please contact a...@apache.org.