diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/wifi_global_func.h b/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/wifi_global_func.h index 43e954fb974395b6469f7d05da6dd3dc502dab68..1e163006084e5d3dc642412342fac79119bdc092 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/wifi_global_func.h +++ b/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/wifi_global_func.h @@ -68,7 +68,7 @@ bool IsAllowScanAnyTime(const ScanControlInfo &info); * @Description Internal transition from OperateResState struct to ConnState * * @param resState - OperateResState state - * @param isReport - true : need report; flase : not report + * @param isReport - true : need report; false : not report * @return ConnState - convert output connection state */ ConnState ConvertConnStateInternalExtral(OperateResState resState, bool &isReport); @@ -77,7 +77,7 @@ ConnState ConvertConnStateInternalExtral(OperateResState resState, bool &isRepor * @Description Internal transition from OperateResState struct to ConnState * * @param resState - OperateResState state - * @param isReport - true : need report; flase : not report + * @param isReport - true : need report; false : not report * @return ConnState - convert output connection state */ ConnState ConvertConnStateInternal(OperateResState resState, bool &isReport); diff --git a/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_pro/wifi_pro_service_test.cpp b/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_pro/wifi_pro_service_test.cpp index da4bed673aa80924ccae969ebebad2ba67204691..46ca6225df960de966b7d5e52178c34a30cabd8a 100644 --- a/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_pro/wifi_pro_service_test.cpp +++ b/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_pro/wifi_pro_service_test.cpp @@ -93,9 +93,9 @@ HWTEST_F(WifiProServiceTest, HandleStaConnChangedTest04, TestSize.Level1) WifiLinkedInfo linkedInfo; linkedInfo.networkId = 1; linkedInfo.bssid = "TEST"; - linkedInfo.wifiLinkType == WifiLinkType::WIFI7_EMLSR; + linkedInfo.wifiLinkType = WifiLinkType::WIFI7_EMLSR; wifiProService_->HandleStaConnChanged(OperateResState::CONNECT_EMLSR_START, linkedInfo); - linkedInfo.wifiLinkType == WifiLinkType::WIFI7_MLSR; + linkedInfo.wifiLinkType = WifiLinkType::WIFI7_MLSR; wifiProService_->HandleStaConnChanged(OperateResState::CONNECT_EMLSR_END, linkedInfo); EXPECT_NE(wifiProService_->instId_, TEN); }