iwi_cvtrate
static int iwi_cvtrate(int);
tap->wr_rate = iwi_cvtrate(frame->rate);
rate = iwi_cvtrate(CSR_READ_4(sc, IWI_CSR_CURRENT_TX_RATE));