There's no relationship between the frequency and the
medium.
The frequency of a wave is determined by the source. Once the
wave leaves
the source and sets out on its journey, the frequency doesn't
change, regardless
of what kind of stuff the wave encounters and has to travel
through.