So I have this problem where a particle is on a ring of perimeter L, and the coordinate of the particle is denoted by $s$, $0<s<L$. There is a nonzero potential which varies with $s, V(s)$, and is always smaller than the energy of the particle. For $E>V$, the WKB wave function is $$\psi(x) = \frac{1}{\sqrt{p(x)}}(C_+e^{i\phi(x)} + C_-e^{-i\phi(x)}),$$ $$ \phi(x) := \frac{1}{\hbar}\int_{x_0}^{x}\sqrt{2m(E - V(x'))}dx',$$ with $$p(x) := \sqrt{2m(E - V(x))}.$$
What should I do if I want to get the quantization condition for the energies $E_n$? I've tried doing $\psi(s) = \psi(s + nL),$ $n$ being an integer, like with regular "particle on a ring" problems, but since we don't have any other boundary conditions, and $V(s + nL) = V(s)$ (because all we did was go around the loop $n$ times), I just get $0 = 0$ and can't seem to get anywhere with this. How could I get an expression for the quantized energies?