From 6f71ef85bb1eb56399e7e16dcba66fe95f4d7ea6 Mon Sep 17 00:00:00 2001 From: yanghui Date: Thu, 30 Nov 2023 12:20:54 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yanghui --- .../wifi_framework/wifi_manage/wifi_manager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_manager.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_manager.cpp index b085d1424..fa16f2273 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_manager.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_manager.cpp @@ -2617,15 +2617,15 @@ void WifiManager::DealLocationModeChangeEvent() void WifiManager::CheckAndStartStaByDatashare() { - constexpr int OPEN_WIFI_NOT_INT_AIRPLANEMODE = 1; - constexpr int OPEN_WIFI_INT_AIRPLANEMODE = 2; + constexpr int OPEN_WIFI_NOT_IN_AIRPLANEMODE = 1; + constexpr int OPEN_WIFI_IN_AIRPLANEMODE = 2; constexpr int CLOSE_WIFI_BY_OPEN_AIRPLANEMODE = 3; int lastStaState = WifiManager::GetInstance().GetLastStaStateByDatashare(); - if (lastStaState == OPEN_WIFI_NOT_INT_AIRPLANEMODE) { + if (lastStaState == OPEN_WIFI_NOT_IN_AIRPLANEMODE) { WifiSettings::GetInstance().SetWifiToggledState(true); WifiManager::GetInstance().WifiToggled(1, 0); - } else if (lastStaState == OPEN_WIFI_INT_AIRPLANEMODE) { + } else if (lastStaState == OPEN_WIFI_IN_AIRPLANEMODE) { WifiConfigCenter::GetInstance().SetOpenWifiWhenAirplaneMode(true); WifiSettings::GetInstance().SetWifiToggledState(true); WifiManager::GetInstance().WifiToggled(1, 0);