回退 'Pull Request !2109 : 修改热点名称-不会变更随机mac'

This commit is contained in:
罗斌 2024-04-22 07:31:40 +00:00 committed by Gitee
parent cdda22cfef
commit 394f3b23e6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -193,11 +193,10 @@ ErrCode WifiHotspotServiceImpl::SetHotspotConfig(const HotspotConfig &config)
}
}
if (!IsApServiceRunning()) {
if (!IsApServiceRunning() ||
WifiServiceManager::GetInstance().ApServiceSetHotspotConfig(config, m_id) == false) {
WifiConfigCenter::GetInstance().SetHotspotConfig(config, m_id);
WifiSettings::GetInstance().SyncHotspotConfig();
} else {
WifiServiceManager::GetInstance().ApServiceSetHotspotConfig(config, m_id);
}
return WIFI_OPT_SUCCESS;
}