mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2024-11-27 01:01:03 +00:00
!1711 固化wifiDeviceConfig缺少的字段
Merge pull request !1711 from likuanxin/master
This commit is contained in:
commit
fea48e13e1
@ -48,6 +48,8 @@ static void ClearWifiDeviceConfig(WifiDeviceConfig &item)
|
||||
item.isPortal = false;
|
||||
item.lastHasInternetTime = -1;
|
||||
item.noInternetAccess = false;
|
||||
item.callProcessName.clear();
|
||||
item.ancoCallProcessName.clear();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -190,6 +192,10 @@ static int SetWifiDeviceConfigFirst(WifiDeviceConfig &item, const std::string &k
|
||||
item.uid = std::stoi(value);
|
||||
} else if (key == "lastConnectTime") {
|
||||
item.lastConnectTime = std::stol(value);
|
||||
} else if (key == "callProcessName") {
|
||||
item.callProcessName = value;
|
||||
} else if (key == "ancoCallProcessName") {
|
||||
item.ancoCallProcessName = value;
|
||||
} else {
|
||||
return SetWifiDeviceConfigExternal(item, key, value);
|
||||
}
|
||||
@ -488,6 +494,8 @@ static std::string OutPutWifiDeviceConfig(WifiDeviceConfig &item)
|
||||
ss << " " <<"wepKeys_" << i << "=" << item.wepKeys[i] << std::endl;
|
||||
}
|
||||
#endif
|
||||
ss << " " <<"callProcessName=" << item.callProcessName << std::endl;
|
||||
ss << " " <<"ancoCallProcessName=" << item.ancoCallProcessName << std::endl;
|
||||
ss << " " <<"</WifiDeviceConfig>" << std::endl;
|
||||
return ss.str();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user