Updated qca patch[C