|
@@ -260,7 +260,7 @@ int isValidCheckSum(uint8_t *message);
|
|
|
char *Support_InterfaceSTA[2] = {"mlan0", "wlan0"};
|
|
|
char *Support_InterfaceAP[1] = {"uap0"};
|
|
|
char *valid_Internet[2] = {"8.8.8.8", "180.76.76.76"};
|
|
|
-char *Version_And_Date[2] = {"V0.16","2021-01-13"};
|
|
|
+char *Version_And_Date[2] = {"V0.17","2021-03-15"};
|
|
|
int protocol_Version [] = {0,7,0};
|
|
|
|
|
|
int StoreLogMsg(const char *fmt, ...)
|
|
@@ -782,6 +782,8 @@ int setWPAconf()
|
|
|
strcat(buffer, "network={\n ssid=\"");
|
|
|
strcat(buffer, (char*)Wifi_A.ssid);
|
|
|
strcat(buffer, "\"\n key_mgmt=WPA-EAP WPA-PSK \n");
|
|
|
+ strcat(buffer, " bgscan=\"simple:10:-60:60\" \n");
|
|
|
+ strcat(buffer, " bgscan=\"learn:10:-60:60:/etc/wpa.bgscan\"\n");
|
|
|
strcat(buffer, " psk=\"");
|
|
|
strcat(buffer, (char*)Wifi_A.passwd);
|
|
|
strcat(buffer, "\"\n}\n\n");
|
|
@@ -795,12 +797,16 @@ int setWPAconf()
|
|
|
strcat(buffer, " wep_key0=\"");
|
|
|
strcat(buffer, (char*)Wifi_A.passwd);
|
|
|
strcat(buffer, "\"\n auth_alg=OPEN SHARED\n");
|
|
|
+ strcat(buffer, " bgscan=\"simple:10:-60:60\"\n");
|
|
|
+ strcat(buffer, " bgscan=\"learn:10:-60:60:/etc/wpa.bgscan\"");
|
|
|
strcat(buffer, "\n}\n\n");
|
|
|
}
|
|
|
|
|
|
strcat(buffer, "network={\n ssid=\"");
|
|
|
strcat(buffer, (char*)Wifi_A.ssid);
|
|
|
strcat(buffer, "\"\n key_mgmt=NONE");
|
|
|
+ strcat(buffer, "\n bgscan=\"simple:10:-60:60\"");
|
|
|
+ strcat(buffer, "\n bgscan=\"learn:10:-60:60:/etc/wpa.bgscan\"");
|
|
|
strcat(buffer, "\n}");
|
|
|
}
|
|
|
else
|
|
@@ -808,6 +814,8 @@ int setWPAconf()
|
|
|
strcat(buffer, "network={\n ssid=\"");
|
|
|
strcat(buffer, (char*)Wifi_A.ssid);
|
|
|
strcat(buffer, "\"\n key_mgmt=NONE");
|
|
|
+ strcat(buffer, "\n bgscan=\"simple:10:-60:60\"");
|
|
|
+ strcat(buffer, "\n bgscan=\"learn:10:-60:60:/etc/wpa.bgscan\"");
|
|
|
strcat(buffer, "\n}");
|
|
|
}
|
|
|
|
|
@@ -4513,7 +4521,7 @@ void proc_sta()
|
|
|
ShmSysConfigAndInfo->SysConfig.AthInterface.WifiNetworkConn=0;
|
|
|
cnt_pingDNS_Fail = 0;
|
|
|
|
|
|
- DEBUG_INFO("Ping DNS failed...");
|
|
|
+ DEBUG_INFO("Ping DNS failed...\n");
|
|
|
memset(ShmSysConfigAndInfo->SysConfig.AthInterface.WifiSubmaskAddress, 0, sizeof ShmSysConfigAndInfo->SysConfig.AthInterface.WifiSubmaskAddress);
|
|
|
memset(ShmSysConfigAndInfo->SysConfig.AthInterface.WifiGatewayAddress, 0, sizeof ShmSysConfigAndInfo->SysConfig.AthInterface.WifiGatewayAddress);
|
|
|
memset(ShmSysConfigAndInfo->SysConfig.AthInterface.WifiMacAddress, 0, sizeof ShmSysConfigAndInfo->SysConfig.AthInterface.WifiMacAddress);
|