save Rx/Tx tuning data for hotspots;

pull/12/head
Bryan Biedenkapp 4 years ago
parent 594e35dca2
commit fefd4ce4ad

@ -278,6 +278,8 @@ int HostCal::run()
yaml::Node modemConf = systemConf["modem"];
m_debug = modemConf["debug"].as<bool>(false);
m_rxTuning = modemConf["rxTuning"].as<int>(0);
m_txTuning = modemConf["txTuning"].as<int>(0);
@ -549,6 +551,7 @@ int HostCal::run()
sscanf(value, "%d", &rxTuning);
m_rxTuning = rxTuning;
m_conf["system"]["modem"]["rxTuning"] = __INT_STR(m_rxTuning);
m_rxAdjustedFreq = m_rxFrequency + m_rxTuning;
writeRFParams();
@ -570,6 +573,7 @@ int HostCal::run()
sscanf(value, "%d", &txTuning);
m_txTuning = txTuning;
m_conf["system"]["modem"]["txTuning"] = __INT_STR(m_txTuning);
m_txAdjustedFreq = m_txFrequency + m_txTuning;
writeRFParams();

@ -1425,7 +1425,7 @@ bool Modem::writeConfig()
// Utils::dump(1U, "Response", m_buffer, m_length);
if (resp == RTM_OK && m_buffer[2U] == CMD_NAK) {
LogError(LOG_MODEM, "NAK to the SET_CONFIG command from the modem");
LogError(LOG_MODEM, "NAK to the SET_CONFIG command from the modem, reason = %u", resp);
return false;
}

@ -149,6 +149,8 @@ namespace modem
RSN_INVALID_P25_CORR_COUNT = 16U,
RSN_HS_NO_DUAL_MODE = 32U,
RSN_DMR_DISABLED = 63U,
RSN_P25_DISABLED = 64U,
};

Loading…
Cancel
Save

Powered by TurnKey Linux.