HELP:Cannot perform the operation: {real affine} .* {convex}

You are multiplying the convex expression h_gain by another CVX variable, p. That is a non-convex operation.

Have you proven this is a convex optimization problem with this choice of optimization variables?