Merge "[Feature][R306][task-view-1547][project] Implement new requirements: apn:internet"
diff --git a/lynq/CPE_COMMON/ap/app/goahead/interface5.0/zte_web_mgmt.c b/lynq/CPE_COMMON/ap/app/goahead/interface5.0/zte_web_mgmt.c
index f40c8ca..233a2c7 100755
--- a/lynq/CPE_COMMON/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/lynq/CPE_COMMON/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -1355,6 +1355,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", schedule_hour);
 		cfg_set("schedule_restart_minute", schedule_minute);
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
@@ -1364,6 +1365,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", "0");
 		cfg_set("schedule_restart_minute", "0");
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
diff --git a/lynq/CPE_TELKOMSEL/ap/app/goahead/interface5.0/zte_web_mgmt.c b/lynq/CPE_TELKOMSEL/ap/app/goahead/interface5.0/zte_web_mgmt.c
index 5626fba..7443296 100755
--- a/lynq/CPE_TELKOMSEL/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/lynq/CPE_TELKOMSEL/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -1355,6 +1355,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", schedule_hour);
 		cfg_set("schedule_restart_minute", schedule_minute);
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
@@ -1364,6 +1365,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", "0");
 		cfg_set("schedule_restart_minute", "0");
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
diff --git a/lynq/MD310/ap/app/goahead/interface5.0/zte_web_mgmt.c b/lynq/MD310/ap/app/goahead/interface5.0/zte_web_mgmt.c
index bd1dcc9..8e54271 100755
--- a/lynq/MD310/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/lynq/MD310/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -1356,6 +1356,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", schedule_hour);
 		cfg_set("schedule_restart_minute", schedule_minute);
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
@@ -1365,6 +1366,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", "0");
 		cfg_set("schedule_restart_minute", "0");
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
diff --git a/lynq/MD310EU/ap/app/goahead/interface5.0/zte_web_mgmt.c b/lynq/MD310EU/ap/app/goahead/interface5.0/zte_web_mgmt.c
index bd1dcc9..8e54271 100755
--- a/lynq/MD310EU/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/lynq/MD310EU/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -1356,6 +1356,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", schedule_hour);
 		cfg_set("schedule_restart_minute", schedule_minute);
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
@@ -1365,6 +1366,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", "0");
 		cfg_set("schedule_restart_minute", "0");
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
diff --git a/lynq/R305/ap/app/goahead/interface5.0/zte_web_mgmt.c b/lynq/R305/ap/app/goahead/interface5.0/zte_web_mgmt.c
index 8b6b777..346604a 100755
--- a/lynq/R305/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/lynq/R305/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -1355,6 +1355,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", schedule_hour);
 		cfg_set("schedule_restart_minute", schedule_minute);
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
@@ -1364,6 +1365,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", "0");
 		cfg_set("schedule_restart_minute", "0");
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
diff --git a/lynq/R306/ap/app/goahead/interface5.0/zte_web_mgmt.c b/lynq/R306/ap/app/goahead/interface5.0/zte_web_mgmt.c
index 9eea404..1243a00 100755
--- a/lynq/R306/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/lynq/R306/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -1354,6 +1354,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", schedule_hour);
 		cfg_set("schedule_restart_minute", schedule_minute);
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
@@ -1363,6 +1364,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", "0");
 		cfg_set("schedule_restart_minute", "0");
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
diff --git a/lynq/R306BR/ap/app/goahead/interface5.0/zte_web_mgmt.c b/lynq/R306BR/ap/app/goahead/interface5.0/zte_web_mgmt.c
index 854d747..3194dc4 100755
--- a/lynq/R306BR/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/lynq/R306BR/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -1354,6 +1354,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", schedule_hour);
 		cfg_set("schedule_restart_minute", schedule_minute);
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
@@ -1363,6 +1364,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", "0");
 		cfg_set("schedule_restart_minute", "0");
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
diff --git a/lynq/R306_MTN/ap/app/goahead/interface5.0/zte_web_mgmt.c b/lynq/R306_MTN/ap/app/goahead/interface5.0/zte_web_mgmt.c
index 854d747..3194dc4 100755
--- a/lynq/R306_MTN/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/lynq/R306_MTN/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -1354,6 +1354,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", schedule_hour);
 		cfg_set("schedule_restart_minute", schedule_minute);
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
@@ -1363,6 +1364,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", "0");
 		cfg_set("schedule_restart_minute", "0");
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
diff --git a/lynq/R307/ap/app/goahead/interface5.0/zte_web_mgmt.c b/lynq/R307/ap/app/goahead/interface5.0/zte_web_mgmt.c
index ff934d6..af79160 100755
--- a/lynq/R307/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/lynq/R307/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -1356,6 +1356,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", schedule_hour);
 		cfg_set("schedule_restart_minute", schedule_minute);
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
@@ -1365,6 +1366,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", "0");
 		cfg_set("schedule_restart_minute", "0");
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
diff --git a/lynq/R307/ap/app/zte_comm/at_ctl/src/atconfig/extat_softap_register.c b/lynq/R307/ap/app/zte_comm/at_ctl/src/atconfig/extat_softap_register.c
index 0c4a7e1..f3cf434 100755
--- a/lynq/R307/ap/app/zte_comm/at_ctl/src/atconfig/extat_softap_register.c
+++ b/lynq/R307/ap/app/zte_comm/at_ctl/src/atconfig/extat_softap_register.c
@@ -559,23 +559,24 @@
 {

 	g_mmi_at_led_flag = 1;

 	int i = 0;

-	char *led_list[6] = {

+	char *led_list[7] = {

 					"battery_g_led",

 					"modem_g_led",

 					"battery_r_led",

 					"modem_r_led",

 					"wifi_led",

-					"modem_b_led",};

-	set_led_states(led_list, 0, 6, 0); // turn off all leds

+					"modem_b_led",

+					"battery_b_led"};

+	set_led_states(led_list, 0, 7, 0); // turn off all leds

 	set_led_states(led_list, 0, 2, 1); // turn on all green leds

 	usleep(500000);

 	set_led_states(led_list, 0, 2, 0); // turn off all green leds

 	set_led_states(led_list, 2, 2, 1); // turn on all red leds

 	usleep(500000);

 	set_led_states(led_list, 2, 2, 0); // turn off all red leds

-	set_led_states(led_list, 4, 2, 1); // turn on all blue leds

+	set_led_states(led_list, 4, 3, 1); // turn on all blue leds

 	usleep(500000);

-	set_led_states(led_list, 4, 2, 0); // turn off all blue leds

+	set_led_states(led_list, 4, 3, 0); // turn off all blue leds

 	return AT_END;

 }

 

diff --git a/lynq/R307L/ap/app/goahead/interface5.0/zte_web_mgmt.c b/lynq/R307L/ap/app/goahead/interface5.0/zte_web_mgmt.c
index 85cd5e1..c04b1c6 100755
--- a/lynq/R307L/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/lynq/R307L/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -1358,6 +1358,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", schedule_hour);
 		cfg_set("schedule_restart_minute", schedule_minute);
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
@@ -1367,6 +1368,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", "0");
 		cfg_set("schedule_restart_minute", "0");
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
diff --git a/lynq/R307L/ap/app/zte_comm/at_ctl/src/atconfig/extat_softap_register.c b/lynq/R307L/ap/app/zte_comm/at_ctl/src/atconfig/extat_softap_register.c
index 0c4a7e1..f3cf434 100755
--- a/lynq/R307L/ap/app/zte_comm/at_ctl/src/atconfig/extat_softap_register.c
+++ b/lynq/R307L/ap/app/zte_comm/at_ctl/src/atconfig/extat_softap_register.c
@@ -559,23 +559,24 @@
 {

 	g_mmi_at_led_flag = 1;

 	int i = 0;

-	char *led_list[6] = {

+	char *led_list[7] = {

 					"battery_g_led",

 					"modem_g_led",

 					"battery_r_led",

 					"modem_r_led",

 					"wifi_led",

-					"modem_b_led",};

-	set_led_states(led_list, 0, 6, 0); // turn off all leds

+					"modem_b_led",

+					"battery_b_led"};

+	set_led_states(led_list, 0, 7, 0); // turn off all leds

 	set_led_states(led_list, 0, 2, 1); // turn on all green leds

 	usleep(500000);

 	set_led_states(led_list, 0, 2, 0); // turn off all green leds

 	set_led_states(led_list, 2, 2, 1); // turn on all red leds

 	usleep(500000);

 	set_led_states(led_list, 2, 2, 0); // turn off all red leds

-	set_led_states(led_list, 4, 2, 1); // turn on all blue leds

+	set_led_states(led_list, 4, 3, 1); // turn on all blue leds

 	usleep(500000);

-	set_led_states(led_list, 4, 2, 0); // turn off all blue leds

+	set_led_states(led_list, 4, 3, 0); // turn off all blue leds

 	return AT_END;

 }

 

diff --git a/lynq/S300/ap/app/goahead/interface5.0/zte_web_mgmt.c b/lynq/S300/ap/app/goahead/interface5.0/zte_web_mgmt.c
index 89537f3..e0e3d8e 100755
--- a/lynq/S300/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/lynq/S300/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -1404,6 +1404,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", schedule_hour);
 		cfg_set("schedule_restart_minute", schedule_minute);
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
@@ -1413,6 +1414,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", "0");
 		cfg_set("schedule_restart_minute", "0");
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
diff --git a/lynq/S300_AIC/ap/app/goahead/interface5.0/zte_web_mgmt.c b/lynq/S300_AIC/ap/app/goahead/interface5.0/zte_web_mgmt.c
index 89537f3..e0e3d8e 100755
--- a/lynq/S300_AIC/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/lynq/S300_AIC/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -1404,6 +1404,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", schedule_hour);
 		cfg_set("schedule_restart_minute", schedule_minute);
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
@@ -1413,6 +1414,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", "0");
 		cfg_set("schedule_restart_minute", "0");
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
diff --git a/lynq/S300_COMMON/ap/app/goahead/interface5.0/zte_web_mgmt.c b/lynq/S300_COMMON/ap/app/goahead/interface5.0/zte_web_mgmt.c
index 89537f3..e0e3d8e 100755
--- a/lynq/S300_COMMON/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/lynq/S300_COMMON/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -1404,6 +1404,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", schedule_hour);
 		cfg_set("schedule_restart_minute", schedule_minute);
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;
@@ -1413,6 +1414,7 @@
 		cfg_set("schedule_restart_enable", schedule_enable);
 		cfg_set("schedule_restart_hour", "0");
 		cfg_set("schedule_restart_minute", "0");
+		cfg_save();
 
 		zte_write_result_to_web(wp, SUCCESS);
 		return;