fw.phy.ht_settings = cmd->rf_init.ht_settings;
fw.phy.frequency = cmd->rf_init.freq;
+ /*
+ * Is the clock controlled by the PHY?
+ */
if ((fw.phy.ht_settings & EIGHTY_FLAG) == EIGHTY_FLAG)
clock_set(AHB_80_88MHZ, true);
else
resp->rf_init_res.ret = cpu_to_le32(ret);
}
-#ifdef CONFIG_CARL9170FW_PSM
void rf_psm(void)
{
u32 bank3;
/* Synthesizer off + RX off */
bank3 = 0x00400018;
- clock_set(true, AHB_20_22MHZ);
+ clock_set(AHB_20_22MHZ, false);
} else {
/* advance to the next PSM step */
fw.phy.psm.state--;
bank3 = 0x01420098;
if ((fw.phy.ht_settings & EIGHTY_FLAG) == EIGHTY_FLAG)
- clock_set(true, AHB_80_88MHZ);
+ clock_set(AHB_80_88MHZ, true);
else
- clock_set(true, AHB_40_44MHZ);
+ clock_set(AHB_40_44MHZ, true);
} else {
return ;
}
}
- if (fw.phy.frequency < 30000000)
+ if (fw.phy.frequency < 3000000)
bank3 |= 0x00800000;
set(0x1c58f0, bank3);
}
-#endif /* CONFIG_CARL9170FW_PSM */
#endif /* CONFIG_CARL9170FW_RADIO_FUNCTIONS */