mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2024-11-23 07:00:07 +00:00
回退 'Pull Request !2109 : 修改热点名称-不会变更随机mac'
This commit is contained in:
parent
cdda22cfef
commit
394f3b23e6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user