?? cal_com.c
字號:
else {
//printf("Will read data from file %s\n", CalSetup.rawDataFilename);
}
}
//read the info for ftpdownload
else if(strnicmp("DO_FTP_DOWNLOAD", pLine, strlen("DO_FTP_DOWNLOAD")) == 0) {
pLine = strchr(pLine, '=');
pLine++;
if(!sscanf(pLine, "%d", &testVal)) {
printf("Unable to read the DO_FTP_DOWNLOAD from %s\n", calsetupFileName);
}
else {
CalSetup.ftpdownloadFileInfo.downloadRequired = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("FTP_HOSTNAME", pLine, strlen("FTP_HOSTNAME")) == 0) {
pLine = strchr(pLine, '=');
pLine++;
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%s", CalSetup.ftpdownloadFileInfo.hostname)) {
printf("Unable to read the FTP_HOSTNAME from %s\n", calsetupFileName);
}
}
else if(strnicmp("FTP_USERNAME", pLine, strlen("FTP_USERNAME")) == 0) {
pLine = strchr(pLine, '=');
pLine++;
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%s", CalSetup.ftpdownloadFileInfo.username)) {
printf("Unable to read the FTP_USERNAME from %s\n", calsetupFileName);
}
}
else if(strnicmp("FTP_PASSWORD", pLine, strlen("FTP_PASSWORD")) == 0) {
pLine = strchr(pLine, '=');
pLine++;
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%s", CalSetup.ftpdownloadFileInfo.password)) {
printf("Unable to read the FTP_PASSWORD from %s\n", calsetupFileName);
}
}
else if(strnicmp("FTP_REMOTE_FILE", pLine, strlen("FTP_REMOTE_FILE")) == 0) {
pLine = strchr(pLine, '=');
pLine++;
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%s", CalSetup.ftpdownloadFileInfo.remotefile)) {
printf("Unable to read the FTP_REMOTE_FILE from %s\n", calsetupFileName);
}
}
else if(strnicmp("FTP_LOCAL_FILE", pLine, strlen("FTP_LOCAL_FILE")) == 0) {
pLine = strchr(pLine, '=');
pLine++;
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%s", CalSetup.ftpdownloadFileInfo.localfile)) {
printf("Unable to read the FTP_LOCAL_FILE from %s\n", calsetupFileName);
}
}
else if(strnicmp("11b_READ_FROM_FILE", pLine, strlen("11b_READ_FROM_FILE")) == 0) {
pLine = strchr(pLine, '=');
pLine++;
if(!sscanf(pLine, "%d", &testVal)) {
printf("Unable to read the 11b_READ_FROM_FILE from %s\n", calsetupFileName);
}
else {
CalSetup.readFromFile_2p4[MODE_11b] = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("11b_RAW_DATA_FILENAME", pLine, strlen("11b_RAW_DATA_FILENAME")) == 0) {
pLine = strchr(pLine, '=');
pLine++;
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%s", CalSetup.rawDataFilename_2p4[MODE_11b])) {
printf("Unable to read the 11b_RAW_DATA_FILENAME from %s\n", calsetupFileName);
}
else {
//printf("Will read data from file %s\n", CalSetup.rawDataFilename);
}
}
else if(strnicmp("11g_READ_FROM_FILE", pLine, strlen("11g_READ_FROM_FILE")) == 0) {
pLine = strchr(pLine, '=');
pLine++;
if(!sscanf(pLine, "%d", &testVal)) {
printf("Unable to read the 11g_READ_FROM_FILE from %s\n", calsetupFileName);
}
else {
CalSetup.readFromFile_2p4[MODE_11g] = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("11g_RAW_DATA_FILENAME", pLine, strlen("11g_RAW_DATA_FILENAME")) == 0) {
pLine = strchr(pLine, '=');
pLine++;
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%s", CalSetup.rawDataFilename_2p4[MODE_11g])) {
printf("Unable to read the 11g_RAW_DATA_FILENAME from %s\n", calsetupFileName);
}
else {
//printf("Will read data from file %s\n", CalSetup.rawDataFilename);
}
}
else if(strnicmp("TEST_32KHZ_SLEEP_CRYSTAL", pLine, strlen("TEST_32KHZ_SLEEP_CRYSTAL")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the TEST_32KHZ_SLEEP_CRYSTAL from %s\n", calsetupFileName);
}
else {
CalSetup.test32KHzSleepCrystal = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("TEST_TEMP_MARGIN", pLine, strlen("TEST_TEMP_MARGIN")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the TEST_TEMP_MARGIN from %s\n", calsetupFileName);
}
else {
CalSetup.testTempMargin[MODE_11a] = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("11b_TEST_TEMP_MARGIN", pLine, strlen("11b_TEST_TEMP_MARGIN")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the 11b_TEST_TEMP_MARGIN from %s\n", calsetupFileName);
}
else {
CalSetup.testTempMargin[MODE_11b] = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("11g_TEST_TEMP_MARGIN", pLine, strlen("11g_TEST_TEMP_MARGIN")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the 11g_TEST_TEMP_MARGIN from %s\n", calsetupFileName);
}
else {
CalSetup.testTempMargin[MODE_11g] = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("11g_TEST_DATA_INTEGRITY", pLine, strlen("11g_TEST_DATA_INTEGRITY")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the 11g_TEST_DATA_INTEGRITY from %s\n", calsetupFileName);
}
else {
CalSetup.testDataIntegrity[MODE_11g] = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("11b_TEST_DATA_INTEGRITY", pLine, strlen("11b_TEST_DATA_INTEGRITY")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the 11b_TEST_DATA_INTEGRITY from %s\n", calsetupFileName);
}
else {
CalSetup.testDataIntegrity[MODE_11b] = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("TEST_DATA_INTEGRITY", pLine, strlen("TEST_DATA_INTEGRITY")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the TEST_DATA_INTEGRITY from %s\n", calsetupFileName);
}
else {
CalSetup.testDataIntegrity[MODE_11a] = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("11g_TEST_THROUGHPUT", pLine, strlen("11g_TEST_THROUGHPUT")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the 11g_TEST_THROUGHPUT from %s\n", calsetupFileName);
}
else {
CalSetup.testThroughput[MODE_11g] = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("11b_TEST_THROUGHPUT", pLine, strlen("11b_TEST_THROUGHPUT")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the 11b_TEST_THROUGHPUT from %s\n", calsetupFileName);
}
else {
CalSetup.testThroughput[MODE_11b] = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("TEST_THROUGHPUT", pLine, strlen("TEST_THROUGHPUT")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the TEST_THROUGHPUT from %s\n", calsetupFileName);
}
else {
CalSetup.testThroughput[MODE_11a] = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("TEST_TXPER_MARGIN", pLine, strlen("TEST_TXPER_MARGIN")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the TEST_TXPER_MARGIN from %s\n", calsetupFileName);
}
else {
CalSetup.testTXPER_margin = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("ATHEROS_LOGGING_SCHEME", pLine, strlen("ATHEROS_LOGGING_SCHEME")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the ATHEROS_LOGGING_SCHEME from %s\n", calsetupFileName);
}
else {
CalSetup.atherosLoggingScheme = (testVal) ? TRUE : FALSE;
}
}
#if !defined(CUSTOMER_REL) && !defined(__ATH_DJGPPDOS__)
else if(strnicmp("USE_FAST_CAL", pLine, strlen("USE_FAST_CAL")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the USE_FAST_CAL from %s\n", calsetupFileName);
}
else {
CalSetup.useFastCal = (testVal) ? TRUE : FALSE;
}
}
#endif
else if(strnicmp("CAL_POWER", pLine, strlen("CAL_POWER")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the CAL_POWER from %s\n", calsetupFileName);
}
else {
CalSetup.calPower = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("REPROGRAM_TARGET_POWER", pLine, strlen("REPROGRAM_TARGET_POWER")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the REPROGRAM_TARGET_POWER from %s\n", calsetupFileName);
}
else {
CalSetup.reprogramTargetPwr = (testVal) ? TRUE : FALSE;
}
}
/* else if(strnicmp("TEST_OBW_MASK", pLine, strlen("TEST_OBW_MASK")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
CalSetup.testOBW = (A_UINT16) strtoul(pLine, NULL, 2);
}
*/
else if(strnicmp("TEST_OBW_MASK", pLine, strlen("TEST_OBW_MASK")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the TEST_OBW_MASK from %s\n", calsetupFileName);
}
else {
CalSetup.testOBW = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("TEST_SPEC_MASK", pLine, strlen("TEST_SPEC_MASK")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the TEST_SPEC_MASK from %s\n", calsetupFileName);
}
else {
CalSetup.testSpecMask = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("TEST_TXPER", pLine, strlen("TEST_TXPER")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the TEST_TXPER from %s\n", calsetupFileName);
}
else {
CalSetup.testTXPER = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("TEST_RXSEN", pLine, strlen("TEST_RXSEN")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the TEST_RXSEN from %s\n", calsetupFileName);
}
else {
CalSetup.testRXSEN = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("TEST_TURBO_MODE", pLine, strlen("TEST_TURBO_MODE")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the TEST_TURBO_MODE from %s\n", calsetupFileName);
}
else {
CalSetup.testTURBO= (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("11g_TEST_TURBO_MODE", pLine, strlen("11g_TEST_TURBO_MODE")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the 11g_TEST_TURBO_MODE from %s\n", calsetupFileName);
}
else {
CalSetup.testTURBO_2p4[MODE_11g] = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("TEST_HALF_RATE_MODE", pLine, strlen("TEST_HALF_RATE_MODE")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the TEST_HALF_RATE_MODE from %s\n", calsetupFileName);
}
else {
CalSetup.testHALFRATE= (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("TEST_QUARTER_RATE_MODE", pLine, strlen("TEST_QUARTER_RATE_MODE")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the TEST_QUARTER_RATE_MODE from %s\n", calsetupFileName);
}
else {
CalSetup.testQUARTERRATE= (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("TEST_TARGET_POWER", pLine, strlen("TEST_TARGET_POWER")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the TEST_TARGET_POWER from %s\n", calsetupFileName);
}
else {
CalSetup.testTargetPowerControl[MODE_11a] = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("11b_TEST_TARGET_POWER", pLine, strlen("11b_TEST_TARGET_POWER")) == 0) {
pLine = strchr(pLine, '=');
pLine = strtok(pLine, delimiters);
if(!sscanf(pLine, "%d", &testVal)) {
uiPrintf("Unable to read the 11b_TEST_TARGET_POWER from %s\n", calsetupFileName);
}
else {
CalSetup.testTargetPowerControl[MODE_11b] = (testVal) ? TRUE : FALSE;
}
}
else if(strnicmp("11g_TEST_TARGET_POWER", pLine, strlen("11g_TEST_TARGET_POWER")) == 0) {
pLine = strchr(pLine, '=');
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -