Bluetooth: 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. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
4f47bc3611
commit
6b3d2935f4
1 changed files with 1 additions and 0 deletions
|
@ -1458,6 +1458,7 @@ int bt_mesh_pb_gatt_recv(struct bt_conn *conn, struct net_buf_simple *buf)
|
||||||
type = net_buf_simple_pull_u8(buf);
|
type = net_buf_simple_pull_u8(buf);
|
||||||
if (type != PROV_FAILED && type != link.expect) {
|
if (type != PROV_FAILED && type != link.expect) {
|
||||||
BT_WARN("Unexpected msg 0x%02x != 0x%02x", type, link.expect);
|
BT_WARN("Unexpected msg 0x%02x != 0x%02x", type, link.expect);
|
||||||
|
prov_send_fail_msg(PROV_ERR_UNEXP_PDU);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue