Commit a4aaf8bb authored by Mariusz Skamra's avatar Mariusz Skamra Committed by Anas Nashif
Browse files

Bluetooth: ATT: Fix responding to unknown ATT command



Host shall ignore the unknown ATT PDU that has Command Flag set.
Fixes regression introduced in 3b271b84.

Fixes: GATT/SR/UNS/BI-02-C
Signed-off-by: default avatarMariusz Skamra <mariusz.skamra@codecoup.pl>
parent f8ba0ccc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1965,6 +1965,10 @@ static att_type_t att_op_get_type(u8_t op)
		return ATT_INDICATION;
	}

	if (op & ATT_CMD_MASK) {
		return ATT_COMMAND;
	}

	return ATT_UNKNOWN;
}