The frequency doesnt change.
The electric and magnetic fields have to remain continuous at the refractive index boundary. If the frequency changed, the light at each side of the boundary would be continuously changing it's relative phase and there would be no way to match the fields.