mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2024-11-27 09:12:20 +00:00
set isShared default value as True
Signed-off-by: wujun <wujun156@huawei.com>
This commit is contained in:
parent
dd3d2b7272
commit
9513e83422
@ -701,7 +701,7 @@ struct WifiDeviceConfig {
|
||||
isReassocSelfCureWithFactoryMacAddress = 0;
|
||||
version = -1;
|
||||
randomizedMacSuccessEver = false;
|
||||
isShared = false;
|
||||
isShared = true;
|
||||
everConnected = false;
|
||||
acceptUnvalidated = false;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user