X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Fsrc%2Frf.c;h=bb74b817aed2ee7428753b03e138b4ab2dc4a9e2;hb=6476369c2c6d4ba487408cb5daff8df0480d6b4a;hp=7bcff275fc22232029322b294273ee74781eab94;hpb=d4e37f3fb33cb7ec913f1e76f899196ffe158aa5;p=carl9170fw.git diff --git a/carlfw/src/rf.c b/carlfw/src/rf.c index 7bcff27..bb74b81 100644 --- a/carlfw/src/rf.c +++ b/carlfw/src/rf.c @@ -181,10 +181,6 @@ static uint32_t rf_init(const uint32_t delta_slope_coeff_exp, set(AR9170_PHY_REG_ANALOG_SWAP, AR9170_PHY_ANALOG_SWAP_AB | AR9170_PHY_ANALOG_SWAP_ALT_CHAIN); - /* configure mask */ - set(AR9170_PHY_REG_RX_CHAINMASK, 0x5); /* chain 0 + chain 2 */ - set(AR9170_PHY_REG_CAL_CHAINMASK, 0x5); /* chain 0 + chain 2 */ - /* Activate BB */ set(AR9170_PHY_REG_ACTIVE, AR9170_PHY_ACTIVE_EN); delay(10); @@ -204,9 +200,9 @@ void rf_cmd(const struct carl9170_cmd *cmd, struct carl9170_rsp *resp) fw.phy.frequency = cmd->rf_init.freq; 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); ret = rf_init(le32_to_cpu(cmd->rf_init.delta_slope_coeff_exp), le32_to_cpu(cmd->rf_init.delta_slope_coeff_man),