diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_pro/perf_5g/perf_5g_handover_service.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_pro/perf_5g/perf_5g_handover_service.cpp index caab08b12f7ee74d46c72e6867550f5ae795c79d..0ceaf24bb63c76a6fc64c6e35ae3bfb743886d33 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_pro/perf_5g/perf_5g_handover_service.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_pro/perf_5g/perf_5g_handover_service.cpp @@ -58,16 +58,16 @@ void Perf5gHandoverService::OnConnected(WifiLinkedInfo &wifiLinkedInfo) InitConnectedAp(wifiLinkedInfo, wifiDeviceConfig); connectedAp_->is5gAfterPerf = is5gAfterPerf; connectedAp_->perf5gStrategyName = strategyName; - bool isItCustNetwork = false; + bool isHwItCustNetwork = false; IEnhanceService *pEnhanceService = WifiServiceManager::GetInstance().GetEnhanceServiceInst(); if (pEnhanceService != nullptr) { - isItCustNetwork = pEnhanceService->IsItCustNetwork(wifiDeviceConfig); + isHwItCustNetwork = pEnhanceService->IsHwItCustNetwork(wifiDeviceConfig); } bool isEnterprise = DualBandUtils::IsEnterprise(wifiDeviceConfig); - connectedAp_->canNotPerf = isEnterprise || wifiLinkedInfo.isDataRestricted || isItCustNetwork || + connectedAp_->canNotPerf = isEnterprise || wifiLinkedInfo.isDataRestricted || isHwItCustNetwork || wifiDeviceConfig.keyMgmt == KEY_MGMT_NONE || connectedAp_->wifiLinkType == WifiLinkType::WIFI7_EMLSR; - WIFI_LOGI("OnConnected, canNotPerf:isEnterprise(%{public}d),isItCustNetwork(%{public}d),isPortal(%{public}d)," - "isDataRestricted(%{public}d),openNet(%{public}d), isEMLSR(%{public}d)", isEnterprise, isItCustNetwork, + WIFI_LOGI("OnConnected, canNotPerf:isEnterprise(%{public}d),isHwItCustNetwork(%{public}d),isPortal(%{public}d)," + "isDataRestricted(%{public}d),openNet(%{public}d), isEMLSR(%{public}d)", isEnterprise, isHwItCustNetwork, wifiDeviceConfig.isPortal, wifiLinkedInfo.isDataRestricted, wifiDeviceConfig.keyMgmt == KEY_MGMT_NONE, connectedAp_->wifiLinkType == WifiLinkType::WIFI7_EMLSR); if (connectedAp_->canNotPerf) { diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_scan/scan_interface.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_scan/scan_interface.cpp index f4ba82b638e6822bd7e5fcc88e8e725397ba3ff0..fd2082f8b513043045e2862da57777e8c22ee464 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_scan/scan_interface.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_scan/scan_interface.cpp @@ -65,6 +65,7 @@ ErrCode ScanInterface::UnInit() return WIFI_OPT_SUCCESS; } +// scanType takes precedence over externFlag, when scanType is not SCAN_DEFAULT, externFlag invalid ErrCode ScanInterface::Scan(bool externFlag, ScanType scanType) { WIFI_LOGI("Enter ScanInterface::Scan\n"); @@ -76,6 +77,7 @@ ErrCode ScanInterface::Scan(bool externFlag, ScanType scanType) return pScanService->Scan(externFlag ? ScanType::SCAN_TYPE_EXTERN : ScanType::SCAN_TYPE_NATIVE_EXTERN); } +// scanType takes precedence over externFlag, when scanType is not SCAN_DEFAULT, externFlag invalid ErrCode ScanInterface::ScanWithParam(const WifiScanParams &wifiScanParams, bool externFlag, ScanType scanType) { WIFI_LOGI("Enter ScanInterface::ScanWithParam\n"); @@ -250,4 +252,4 @@ ErrCode ScanInterface::ResetScanInterval() return WIFI_OPT_SUCCESS; } } // namespace Wifi -} // namespace OHOS +} // namespace OHOS \ No newline at end of file