|
@@ -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;
|