[Bugfix][T108][bug-view-2106] Add AT CMD *DIAGSWITCH=diag_media,saveflag;diag_media type{USB,SD,TCP,FS}save flag{0,1} to fix RF test error.
Only Configure: No
Affected branch: GSW_V1453
Affected module: log
Self-test: yes
Doc Update: no
Change-Id: I6fd4d521a7d0d19ee89bf16a2586366fd557b4d7
diff --git a/marvell/lte-telephony/apps/diag/command_api.c b/marvell/lte-telephony/apps/diag/command_api.c
index 3a541fe..1e54ea2 100644
--- a/marvell/lte-telephony/apps/diag/command_api.c
+++ b/marvell/lte-telephony/apps/diag/command_api.c
@@ -223,7 +223,19 @@
sleep(3); // wait for CP to disconnect
exit(0);
}
-
+ else if (strcasecmp(command,"save") == 0) /* save default media */
+ {
+ ret = getMediaByName(arg);
+ if(ret >= 0)
+ {
+ save_diag_default_media_config(ret);
+ reply = response_success;
+ }
+ else
+ {
+ reply = response_error;
+ }
+ }
(void)sendReply(clients[client_id].fd, reply, reply_arg);
}