The frequency of a set of waves is set at the source itself. For instance, if Billy pokes a pond with a stick twice each second, the frequency will be 2 Hz.
As the waves travel over the pond's surface, this frequency will not change. What may change is the distance between waves - the wavelength - and their speed.
Let's see how these three things relate.