From 77209f0bc256b4f620fccfa0db4aa92e9139d8ba Mon Sep 17 00:00:00 2001 From: shihaojie Date: Sat, 9 Aug 2025 11:13:12 +0000 Subject: [PATCH 1/8] 1 Signed-off-by: shihaojie --- .../wifi_manage/wifi_ap/ap_config_use.cpp | 30 +++++++++++++++++-- .../wifi_manage/wifi_ap/ap_config_use.h | 4 ++- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_config_use.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_config_use.cpp index 2674efed0..03c6f30a3 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_config_use.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_config_use.cpp @@ -70,6 +70,11 @@ void ApConfigUse::UpdateApChannelConfig(HotspotConfig &apConfig) const apConfig.GetChannel()); } +void ApConfigUse::SetDfsControlData(DfsControlData dfsControlData) +{ + dfsControlData_ = dfsControlData; +} + int ApConfigUse::GetBestChannelFor2G() const { std::vector channels = GetChannelFromDrvOrXmlByBand(BandType::BAND_2GHZ); @@ -87,11 +92,17 @@ int ApConfigUse::GetBestChannelFor5G(HotspotConfig &apConfig) const std::vector channels = GetChannelFromDrvOrXmlByBand(BandType::BAND_5GHZ); FilterIndoorChannel(channels); Filter165Channel(channels); + FilterDfsChannel(channels); WIFI_LOGD("Instance %{public}d %{public}s band:%{public}d, channel:%{public}d, bandwidth:%{public}d", m_id, __func__, static_cast(apConfig.GetBand()), apConfig.GetChannel(), apConfig.GetBandWidth()); if (apConfig.GetBandWidth() == AP_BANDWIDTH_160) { - WIFI_LOGI("GetBestChannelFor5G BandWidth is 160M"); - return AP_CHANNEL_5G_160M_DEFAULT; + if (dfsControlData_.enableDfs_ == 1) { + WIFI_LOGI("GetBestChannelFor5G BandWidth is 160M"); + return AP_CHANNEL_5G_160M_DEFAULT; + } else { + WIFI_LOGI("GetBestChannelFor5G Invalid BandWidth"); + return AP_CHANNEL_INVALID; + } } if (channels.empty()) { WIFI_LOGI("GetBestChannelFor5G is empty"); @@ -174,6 +185,21 @@ void ApConfigUse::Filter165Channel(std::vector &channels) const } } +void ApConfigUse::FilterDfsChannel(std::vector &channels) const +{ + if (dfsControlData_.enableDfs_ == 1 || channels.empty()) { + return; + } + for (auto it = channels.begin(); it != channels.end();) { + if (*it >= CHANNEL50 && *it < CHANNEL144) { + WIFI_LOGI("filter not recommend DFS:%{public}d", *it); + it = channels.erase(it); + } else { + ++it; + } + } +} + void ApConfigUse::JudgeDbacWithP2p(HotspotConfig &apConfig) const { WifiP2pLinkedInfo p2pLinkedInfo; diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_config_use.h b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_config_use.h index 4cd8bdb3a..5894659b9 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_config_use.h +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_config_use.h @@ -50,9 +50,10 @@ public: * @param apConfig - ap configuration input */ void UpdateApChannelConfig(HotspotConfig &apConfig) const; + void SetDfsControlData(DfsControlData dfsControlData); private: static constexpr int DEFAULT_STA_INSTANCE_ID = 0; - + DfsControlData dfsControlData_ = DfsControlData(); class SoftapChannelPolicyParser : public XmlParser { public: enum class SoftapChannelsPolicyType { @@ -104,6 +105,7 @@ private: std::vector GetChannelFromDrvOrXmlByBand(const BandType &bandType) const; void FilterIndoorChannel(std::vector &channels) const; void Filter165Channel(std::vector &channels) const; + void FilterDfsChannel(std::vector &channels) const; void JudgeDbacWithP2p(HotspotConfig &apConfig) const; std::set GetIndoorChanByCountryCode(const std::string &countryCode) const; std::vector GetPreferredChannelByBand(const BandType &bandType) const; -- Gitee From 9c5fa5ccf7d8b678a41eb113853d210ce1d36c23 Mon Sep 17 00:00:00 2001 From: shihaojie Date: Sat, 9 Aug 2025 11:13:17 +0000 Subject: [PATCH 2/8] 1 Signed-off-by: shihaojie --- wifi/base/inner_api/ienhance_service.h | 6 +++--- wifi/frameworks/native/interfaces/wifi_ap_msg.h | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/wifi/base/inner_api/ienhance_service.h b/wifi/base/inner_api/ienhance_service.h index a73ffb6dd..3639b5c48 100644 --- a/wifi/base/inner_api/ienhance_service.h +++ b/wifi/base/inner_api/ienhance_service.h @@ -322,11 +322,11 @@ public: virtual LimitSwitchScenes GetLimitSwitchScenes() = 0; /** - * @Description obtain supported 160MHz + * @Description get DFS Control Ability * - * @return bool - supported 160MHz + * @return DfsControlData DFS data info */ - virtual bool IsControl160M() = 0; + virtual DfsControlData GetDfsControlData() = 0; /** * @Description register sensor result callback diff --git a/wifi/frameworks/native/interfaces/wifi_ap_msg.h b/wifi/frameworks/native/interfaces/wifi_ap_msg.h index 4d51617e1..c08a66c42 100644 --- a/wifi/frameworks/native/interfaces/wifi_ap_msg.h +++ b/wifi/frameworks/native/interfaces/wifi_ap_msg.h @@ -39,7 +39,8 @@ namespace Wifi { #define AP_CHANNEL_5G_160M_SET_END 48 const std::string AP_DEFAULT_IP = "192.168.43.1"; - +const int32_t CHANNEL50 = 50; +const int32_t CHANNEL144 = 144; enum class ApState { AP_STATE_NONE = 0, AP_STATE_IDLE, -- Gitee From 0c5cb40246da2ecfe90ffbd65a32322d4f1f9645 Mon Sep 17 00:00:00 2001 From: shihaojie Date: Sat, 9 Aug 2025 11:13:20 +0000 Subject: [PATCH 3/8] 1 Signed-off-by: shihaojie --- wifi/interfaces/inner_api/wifi_msg.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wifi/interfaces/inner_api/wifi_msg.h b/wifi/interfaces/inner_api/wifi_msg.h index 6c005c501..2fedc0341 100644 --- a/wifi/interfaces/inner_api/wifi_msg.h +++ b/wifi/interfaces/inner_api/wifi_msg.h @@ -78,7 +78,7 @@ inline const std::string EAP_METHOD_AKA = "AKA"; inline const std::string EAP_METHOD_AKA_PRIME = "AKA'"; inline const int INVALID_NETWORK_SELECTION_DISABLE_TIMESTAMP = -1; - +inline const int ENABLE_AIDFS = 7; enum SigLevel { SIG_LEVEL_0 = 0, SIG_LEVEL_1 = 1, @@ -1153,6 +1153,11 @@ struct WpaEapData { int32_t bufferLen; /* length of data in the buffer */ std::vector eapBuffer; /* eap Data */ }; + +struct DfsControlData { + uint32_t enableAidfs_ = ENABLE_AIDFS; + uint32_t enableDfs_ = 1; +}; } // namespace Wifi } // namespace OHOS #endif -- Gitee From 86df8eaec67b860b836af75e5c685d1e14b4505b Mon Sep 17 00:00:00 2001 From: shihaojie Date: Sat, 9 Aug 2025 11:54:40 +0000 Subject: [PATCH 4/8] 1 Signed-off-by: shihaojie --- .../wifi_manage/wifi_ap/ap_service.cpp | 6 ++-- .../wifi_manage/wifi_ap/ap_started_state.cpp | 36 +++++++++++++++---- .../wifi_manage/wifi_ap/ap_started_state.h | 25 ++++++++++--- .../wifi_ap_sa/wifi_hotspot_service_impl.cpp | 1 - 4 files changed, 52 insertions(+), 16 deletions(-) diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_service.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_service.cpp index ea7eb22d8..d1dd0f96e 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_service.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_service.cpp @@ -47,11 +47,9 @@ ErrCode ApService::EnableHotspot() #ifdef SUPPORT_LOCAL_RANDOM_MAC apStartedState_.SetRandomMac(); #endif - bool iscontrol160M = false; #ifndef OHOS_ARCH_LITE if (enhanceService_ != nullptr) { - iscontrol160M = enhanceService_->IsControl160M(); - WIFI_LOGI("EnableHotspot iscontrol160M, %{public}d", iscontrol160M); + apStartedState_.SetEnhanceService(enhanceService_); } else { WIFI_LOGI("EnableHotspot enhanceService_nullptr"); } @@ -65,7 +63,7 @@ ErrCode ApService::EnableHotspot() break; } WIFI_LOGI("StartAP is ok."); - if (!(apStartedState_.SetConfig(iscontrol160M))) { + if (!(apStartedState_.SetConfig())) { WIFI_LOGE("wifi_settings.hotspotconfig is error."); break; } diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.cpp index 07eac18f8..82652c8e0 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.cpp @@ -47,6 +47,7 @@ DEFINE_WIFILOG_HOTSPOT_LABEL("WifiApStartedState"); namespace OHOS { namespace Wifi { const int STA_JOIN_HANDLE_DELAY = 5 * 1000; +const int CAC_STOP_BY_AP_REQUEST = 5; ApStartedState::ApStartedState(ApStateMachine &apStateMachine, ApConfigUse &apConfigUse, ApMonitor &apMonitor, int id) : State("ApStartedState"), m_hotspotConfig(HotspotConfig()), @@ -136,18 +137,29 @@ bool ApStartedState::ExecuteStateMsg(InternalMessagePtr msg) return EXECUTED; } -bool ApStartedState::SetConfig(HotspotConfig &apConfig, bool isControl160M) +bool ApStartedState::SetConfig(HotspotConfig &apConfig) { WIFI_LOGI("set softap config with param, id=%{public}d", m_id); +#ifndef OHOS_ARCH_LITE + if (enhanceService_ != nullptr) { + m_ApConfigUse.SetDfsControlData(enhanceService_->GetDfsControlData()); + } +#endif m_ApConfigUse.UpdateApChannelConfig(apConfig); +#ifndef OHOS_ARCH_LITE + if ((apConfig.GetBandWidth() == AP_BANDWIDTH_160 || + (apConfig.GetChannel() >= CHANNEL50 && apConfig.GetChannel() <= CHANNEL144))) { + if (enhanceService_ != nullptr && enhanceService_->GetDfsControlData().enableAidfs_) { + WIFI_LOGI("DfsControl. use Dfs Channel and Aidfs enable, Stop 60s CAC"); + enhanceService_->StopGetCacResultAndLocalCac(CAC_STOP_BY_AP_REQUEST); + } + } +#endif std::string ifName = WifiConfigCenter::GetInstance().GetApIfaceName(); WifiErrorNo setSoftApConfigResult = WifiErrorNo::WIFI_HAL_OPT_OK; WifiErrorNo setApPasswdResult = WifiErrorNo::WIFI_HAL_OPT_OK; HotspotMode currentMode = HotspotMode::SOFTAP; m_ApStateMachine.GetHotspotMode(currentMode); - if (isControl160M) { - apConfig.SetBandWidth(AP_BANDWIDTH_DEFAULT); - } if (currentMode == HotspotMode::LOCAL_ONLY_SOFTAP) { // The localOnlyHotspot uses the temporary configuration and does not flush to disks, // The SSID and password are random values. @@ -169,6 +181,11 @@ bool ApStartedState::SetConfig(HotspotConfig &apConfig, bool isControl160M) WIFI_LOGE("set hostapd config failed."); return false; } + return SetConfigExtral(apConfig, ifName); +} + +bool ApStartedState::SetConfigExtral(HotspotConfig &apConfig, std::string ifName) +{ if (BatteryUtils::GetInstance().GetBatteryCapacity() > SET_DUAL_ANTENNAS) { HotspotConfig hotspotConfig; WifiSettings::GetInstance().GetHotspotConfig(hotspotConfig, m_id); @@ -191,14 +208,14 @@ bool ApStartedState::SetConfig(HotspotConfig &apConfig, bool isControl160M) return true; } -bool ApStartedState::SetConfig(bool isControl160M) +bool ApStartedState::SetConfig() { WIFI_LOGI("set softap config, id=%{public}d", m_id); if (WifiSettings::GetInstance().GetHotspotConfig(m_hotspotConfig, m_id)) { WIFI_LOGE("get config failed"); return false; } - return SetConfig(m_hotspotConfig, isControl160M); + return SetConfig(m_hotspotConfig); } bool ApStartedState::StartAp() const @@ -505,5 +522,12 @@ void ApStartedState::ProcessCmdEnableAp(InternalMessagePtr msg) WifiConfigCenter::GetInstance().SetSoftapToggledState(false); m_ApStateMachine.SwitchState(&m_ApStateMachine.m_ApIdleState); } + +#ifndef OHOS_ARCH_LITE +void ApStartedState::SetEnhanceService(IEnhanceService* enhanceService) +{ + enhanceService_ = enhanceService; +} +#endif } // namespace Wifi } // namespace OHOS diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.h b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.h index 16397480b..0021132db 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.h +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.h @@ -20,7 +20,10 @@ #include "state.h" #include "wifi_ap_nat_manager.h" #include "wifi_ap_msg.h" - +#include "wifi_msg.h" +#ifndef OHOS_ARCH_LITE +#include "ienhance_service.h" +#endif namespace OHOS { namespace Wifi { class ApStateMachine; @@ -94,21 +97,30 @@ public: */ void StartMonitor() const; - bool SetConfig(bool isControl160M = false); + bool SetConfig(); + + bool SetConfigExtral(HotspotConfig &apConfig, std::string ifName); void SetRandomMac() const; bool SetCountry(); - +#ifndef OHOS_ARCH_LITE + /** + * @Description Set EnhanceService to Ap start + * + * @param enhanceService IEnhanceService object + */ + void SetEnhanceService(IEnhanceService* enhanceService); +#endif + void CheckDfsControl(HotspotConfig &apConfig); private: /** * @Description Called inside the state,processing function configured. * @param apConfig - Hotspot Configure - * @param isControl160M - Hotspot Configure * @return true: Set successfully false: Set failed */ - bool SetConfig(HotspotConfig &apConfig, bool isControl160M = false); + bool SetConfig(HotspotConfig &apConfig); /** * @Description Status update notification APSERVICE. @@ -248,6 +260,9 @@ private: bool idleTimerExist = false; mutable std::string m_wifiCountryCode; std::set curAssocMacList; +#ifndef OHOS_ARCH_LITE + IEnhanceService *enhanceService_ = nullptr; +#endif }; } // namespace Wifi } // namespace OHOS diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/wifi_hotspot_service_impl.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/wifi_hotspot_service_impl.cpp index f026af66f..c00c60a6b 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/wifi_hotspot_service_impl.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/wifi_hotspot_service_impl.cpp @@ -491,7 +491,6 @@ ErrCode WifiHotspotServiceImpl::EnableHotspot(const ServiceType type) if (errCode != WIFI_OPT_SUCCESS) { return errCode; } - WifiManager::GetInstance().StopGetCacResultAndLocalCac(CAC_STOP_BY_AP_REQUEST); return WifiManager::GetInstance().GetWifiTogglerManager()->SoftapToggled(1, m_id); } -- Gitee From 4097ad8e05789a49d99cccb1ba040020ba07a230 Mon Sep 17 00:00:00 2001 From: shihaojie Date: Sat, 9 Aug 2025 12:08:34 +0000 Subject: [PATCH 5/8] 1 Signed-off-by: shihaojie --- .../wifi_manage/wifi_ap_sa/wifi_hotspot_service_impl.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/wifi_hotspot_service_impl.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/wifi_hotspot_service_impl.cpp index c00c60a6b..ad462a0b7 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/wifi_hotspot_service_impl.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/wifi_hotspot_service_impl.cpp @@ -528,7 +528,6 @@ ErrCode WifiHotspotServiceImpl::EnableLocalOnlyHotspot(const ServiceType type) if (wifiControllerMachine != nullptr) { wifiControllerMachine->IsLocalOnlyHotspot(true); } - WifiManager::GetInstance().StopGetCacResultAndLocalCac(CAC_STOP_BY_AP_REQUEST); return WifiManager::GetInstance().GetWifiTogglerManager()->SoftapToggled(1, m_id); } -- Gitee From 1d4b90c71701d5107fad421a4de77776eb2be862 Mon Sep 17 00:00:00 2001 From: shihaojie Date: Mon, 11 Aug 2025 03:06:10 +0000 Subject: [PATCH 6/8] 1 Signed-off-by: shihaojie --- wifi/base/inner_api/ienhance_service.h | 5 +++++ .../wifi_framework/wifi_manage/wifi_ap/ap_config_use.cpp | 2 +- .../wifi_framework/wifi_manage/wifi_ap/ap_started_state.cpp | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/wifi/base/inner_api/ienhance_service.h b/wifi/base/inner_api/ienhance_service.h index 3639b5c48..970d1a8e2 100644 --- a/wifi/base/inner_api/ienhance_service.h +++ b/wifi/base/inner_api/ienhance_service.h @@ -327,6 +327,11 @@ public: * @return DfsControlData DFS data info */ virtual DfsControlData GetDfsControlData() = 0; + + /** + * @Description Stop Cac + */ + virtual void CloseCAC() = 0; /** * @Description register sensor result callback diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_config_use.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_config_use.cpp index 03c6f30a3..d4e4dbadc 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_config_use.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_config_use.cpp @@ -192,7 +192,7 @@ void ApConfigUse::FilterDfsChannel(std::vector &channels) const } for (auto it = channels.begin(); it != channels.end();) { if (*it >= CHANNEL50 && *it < CHANNEL144) { - WIFI_LOGI("filter not recommend DFS:%{public}d", *it); + WIFI_LOGI("filter: not recommend DFS:%{public}d", *it); it = channels.erase(it); } else { ++it; diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.cpp index 82652c8e0..906b3f553 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.cpp @@ -151,7 +151,7 @@ bool ApStartedState::SetConfig(HotspotConfig &apConfig) (apConfig.GetChannel() >= CHANNEL50 && apConfig.GetChannel() <= CHANNEL144))) { if (enhanceService_ != nullptr && enhanceService_->GetDfsControlData().enableAidfs_) { WIFI_LOGI("DfsControl. use Dfs Channel and Aidfs enable, Stop 60s CAC"); - enhanceService_->StopGetCacResultAndLocalCac(CAC_STOP_BY_AP_REQUEST); + enhanceService_->CloseCAC(); } } #endif -- Gitee From d2c80b083131342f66bb57d4f8b32de390870267 Mon Sep 17 00:00:00 2001 From: shihaojie Date: Mon, 11 Aug 2025 04:44:57 +0000 Subject: [PATCH 7/8] 1 Signed-off-by: shihaojie --- .../wifi_manage/wifi_ap_sa/wifi_hotspot_service_impl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/wifi_hotspot_service_impl.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/wifi_hotspot_service_impl.cpp index ad462a0b7..f026af66f 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/wifi_hotspot_service_impl.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/wifi_hotspot_service_impl.cpp @@ -491,6 +491,7 @@ ErrCode WifiHotspotServiceImpl::EnableHotspot(const ServiceType type) if (errCode != WIFI_OPT_SUCCESS) { return errCode; } + WifiManager::GetInstance().StopGetCacResultAndLocalCac(CAC_STOP_BY_AP_REQUEST); return WifiManager::GetInstance().GetWifiTogglerManager()->SoftapToggled(1, m_id); } @@ -528,6 +529,7 @@ ErrCode WifiHotspotServiceImpl::EnableLocalOnlyHotspot(const ServiceType type) if (wifiControllerMachine != nullptr) { wifiControllerMachine->IsLocalOnlyHotspot(true); } + WifiManager::GetInstance().StopGetCacResultAndLocalCac(CAC_STOP_BY_AP_REQUEST); return WifiManager::GetInstance().GetWifiTogglerManager()->SoftapToggled(1, m_id); } -- Gitee From 818ec51f1b72e1b84c10690d76e99ab8814e33dd Mon Sep 17 00:00:00 2001 From: shihaojie Date: Mon, 11 Aug 2025 06:09:49 +0000 Subject: [PATCH 8/8] 1 Signed-off-by: shihaojie --- .../wifi_framework/wifi_manage/wifi_ap/ap_started_state.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.cpp index 906b3f553..fc3dc7229 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ap_started_state.cpp @@ -47,7 +47,6 @@ DEFINE_WIFILOG_HOTSPOT_LABEL("WifiApStartedState"); namespace OHOS { namespace Wifi { const int STA_JOIN_HANDLE_DELAY = 5 * 1000; -const int CAC_STOP_BY_AP_REQUEST = 5; ApStartedState::ApStartedState(ApStateMachine &apStateMachine, ApConfigUse &apConfigUse, ApMonitor &apMonitor, int id) : State("ApStartedState"), m_hotspotConfig(HotspotConfig()), -- Gitee