The dependence of upstream wave periods on the interplanetary magnetic field strength