Only use one parameter wifi name and password for client and ap mode
@@ -2340,15 +2340,8 @@ int DeRestPluginPrivate::configureWifi(const ApiRequest &req, ApiResponse &rsp)
return REQ_READY_SEND;
}
- if (gwWifiType == "accesspoint")
- {
gwWifiName = name;
}
- else
- {
- gwWifiClientName = name;
- }
- }
if (map.contains("password"))
{
QString password = map["password"].toString();
@@ -2360,14 +2353,8 @@ int DeRestPluginPrivate::configureWifi(const ApiRequest &req, ApiResponse &rsp)
return REQ_READY_SEND;
}
- if (gwWifiType == "accesspoint")
- {
gwWifiPw = password;
- }
- else
- {
- gwWifiClientPw = password;
- }
+
}
if (map.contains("wifi"))
{
