Jelajahi Sumber

2020-06-15 / Eason Yang
1.Change : Module_Wifi.c Reason : Fixed /root/iwconfig pathway -> iwconfig

8009 4 tahun lalu
induk
melakukan
1ee7687fba
1 mengubah file dengan 4 tambahan dan 3 penghapusan
  1. 4 3
      EVSE/Modularization/Module_Wifi.c

+ 4 - 3
EVSE/Modularization/Module_Wifi.c

@@ -4,7 +4,7 @@
  *  Created on: 2020-01-14
  *  Update on: 2020-05-27
  *  Author: Jerry Wang, Eason Yang, Folus Wen
- *  Version: D0.02
+ *  Version: D0.03
  */
 
 #include 	<sys/time.h>
@@ -558,7 +558,7 @@ int isConnectAP()
 	char buf[512];
 
 	// Get IP address & net mask
-	strcpy(cmd, "/root/iwconfig ");
+	strcpy(cmd, "iwconfig ");
 	strcat(cmd, Wifi.currentInterface);
 	fp = popen(cmd, "r");
 	if(fp == NULL)
@@ -663,7 +663,7 @@ int getLinkQuality()
 	char buf[512];
 	char tmp[512];
 
-	strcpy(cmd, "/root/iwconfig ");
+	strcpy(cmd, "iwconfig ");
 	strcat(cmd, Wifi.currentInterface);
 	fp = popen(cmd, "r");
 	if(fp == NULL)
@@ -3650,6 +3650,7 @@ void proc_ap()
 			}
 			break;
 		case AP_STATE_DEVICE_DETECT:
+			dispReq.isShowed_IP_info = false;
 			if(!isSetWPA_OK && (setWPAconf() == PASS))
 			{
 				isSetWPA_OK = true;