diff options
author | Jeff Hatch <jhatch@multitech.com> | 2021-09-29 15:14:27 -0500 |
---|---|---|
committer | Jeff Hatch <jhatch@multitech.com> | 2021-09-29 15:14:27 -0500 |
commit | 4d78dc6e08e3917589db8fb94e6134c5466d1787 (patch) | |
tree | 18b848f4eb5360e11bc3c92c3f440db3211bff64 | |
parent | 798ce3fc49a80d079580f0eec484ede498d51a34 (diff) | |
parent | d6b361fb57240c78d5bf61726d426c1ff0dcd56e (diff) | |
download | radio-cmd-4d78dc6e08e3917589db8fb94e6134c5466d1787.tar.gz radio-cmd-4d78dc6e08e3917589db8fb94e6134c5466d1787.tar.bz2 radio-cmd-4d78dc6e08e3917589db8fb94e6134c5466d1787.zip |
Merge branch 'ms/MTX-4206_disable_voice_support' into 'master'
0.9
[MTX-4206] mPower R.6.0: Making Telit and Quectel radios data-only on AT&T network. GP-1364
See merge request !9
-rw-r--r-- | main.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -118,6 +118,7 @@ const uint32_t AOPT_DFU_UPLOAD = 0x00000002; const uint32_t AOPT_DFU_APPLY = 0x00000004; const uint32_t AOPT_FUMO_LOCAL = 0x00000008; const uint32_t AOPT_SET_UE_MODE_OF_OPERATION = 0x00000010; +const uint32_t AOPT_DISABLE_VOICE_SUPPORT = 0x00000020; void handle_sigterm(int signum); void printHelp(const std::string& sApp); @@ -166,7 +167,8 @@ static struct option long_options[] = { { "delta-fwu-upload", required_argument, 0, 'x' }, { "delta-fwu-apply", no_argument, 0, 'A' }, { "init-fumo-local", required_argument, 0, 'F' }, - { "set-ue-mode-of-operation",required_argument, 0, 'U' }, + { "set-ue-mode-of-operation",required_argument, 0, 'U' }, + { "disable-voice-support", no_argument, 0, 'V' }, { 0, 0, 0, 0 } }; @@ -420,6 +422,9 @@ int main(int argc, char** argv) { } else { printf("Invalid argument: %s\n", g_sUeModeOfOperation.c_str()); } + } else if (g_iAuxOptions & AOPT_DISABLE_VOICE_SUPPORT) { + result = g_apRadio->disableVoiceSupport(); + printf("%s\n", code2str(result)); } shutdown(); @@ -666,6 +671,10 @@ void parseOptions(int argc, char** argv) g_iAuxOptions |= AOPT_SET_UE_MODE_OF_OPERATION; break; + case 'V': + g_iAuxOptions |= AOPT_DISABLE_VOICE_SUPPORT; + break; + default: printf("OPTION: [%d] ABORTING!!\n", c); abort(); @@ -712,6 +721,7 @@ void printHelp(const std::string& sApp) { printf("\t--set-rx-diversity <VAL> : set RX Diversity\n"); printf("\t--set-cellular-mode : set preferred networks eg. 2g,3g,4g\n"); printf("\t--set-ue-mode-of-operation <MODE> : set the UE mode of operation: ps_1, ps_2, csps_1, csps_2\n"); + printf("\t--disable-voice-support : disable support of voice calls (selected radios only)\n"); // Applicable for LTE910-NA1 dual FW images only // printf("\t--set-active-firmware <VAL> : switch to a specific firmware image\n"); printf("\t--factory-default [ --msl <MSL> ] : reset to factory defaults\n"); |