freqtoper
static u_int freqtoper(u_int);
sc->sc_channel[i].nd_per = freqtoper(8000);
per = freqtoper(sr);