It's both. You can't change one without changing the other.
When you multiply (wavelength) x (frequency), the product is always
the same number ... the speed of the wave. So if you change one of
them, the other one has to change in the opposite direction in order for
the product to stay the same.
Gamma rays have much much shorter wavelength, and much much higher
frequency, than radio waves have.