set isShared default value as True

Signed-off-by: wujun <wujun156@huawei.com>
This commit is contained in:
wujun 2024-10-30 15:29:15 +08:00
parent dd3d2b7272
commit 9513e83422
2 changed files with 3 additions and 1 deletions

View File

@ -701,7 +701,7 @@ struct WifiDeviceConfig {
isReassocSelfCureWithFactoryMacAddress = 0;
version = -1;
randomizedMacSuccessEver = false;
isShared = false;
isShared = true;
everConnected = false;
acceptUnvalidated = false;
}

View File

@ -247,6 +247,8 @@ ErrCode StaService::AddCandidateConfig(const int uid, const WifiDeviceConfig &co
if (IsAppInCandidateFilterList(uid)) {
tempDeviceConfig.isShared = true;
tempDeviceConfig.isEphemeral = false;
} else {
tempDeviceConfig.isShared = false;
}
#endif
netWorkId = AddDeviceConfig(tempDeviceConfig);