X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Fsrc%2Frf.c;h=152aac59f5be225600e6b5cd081c1fb9cb9e31e6;hb=1f52b1617d72cfa6909ebbfbdf7c264d487b28d8;hp=e031dd8ee4d1f84e7fa3570dbd8c1e6f6c8b56fb;hpb=e5ef38a8fa9ef524c3ef061083ce35d1529e5ea0;p=carl9170fw.git diff --git a/carlfw/src/rf.c b/carlfw/src/rf.c index e031dd8..152aac5 100644 --- a/carlfw/src/rf.c +++ b/carlfw/src/rf.c @@ -197,18 +197,19 @@ static uint32_t rf_init(const uint32_t delta_slope_coeff_exp, void rf_cmd(const struct carl9170_cmd *cmd, struct carl9170_rsp *resp) { - uint32_t ret; + uint32_t ret, div; - fw.phy.ht_settings = cmd->rf_init.ht_settings; + fw.phy.settings = cmd->rf_init.settings; fw.phy.frequency = cmd->rf_init.freq; + div = GET_VAL(CARL9170FW_PHY_RF_DIV, fw.phy.settings); /* * Is the clock controlled by the PHY? */ - if ((fw.phy.ht_settings & EIGHTY_FLAG) == EIGHTY_FLAG) - clock_set(AHB_80_88MHZ, true); + if ((fw.phy.settings & EIGHTY_FLAG) == EIGHTY_FLAG) + clock_set(AHB_80_88MHZ, true, div); else - clock_set(AHB_40_44MHZ, true); + clock_set(AHB_40_44MHZ, true, div); ret = rf_init(le32_to_cpu(cmd->rf_init.delta_slope_coeff_exp), le32_to_cpu(cmd->rf_init.delta_slope_coeff_man),