1 /* 2 * Copyright (C) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef OHOS_WIFI_NETWORAPPRAISAL_H 16 #define OHOS_WIFI_NETWORAPPRAISAL_H 17 18 #include <vector> 19 #include "wifi_errcode.h" 20 #include "wifi_msg.h" 21 #include "log_helper.h" 22 #include "sta_define.h" 23 #include "wifi_internal_msg.h" 24 25 namespace OHOS { 26 namespace Wifi { 27 static const int MIN_24_FREQUENCY = 2400; 28 static const int MAX_24_FREQUENCY = 2500; 29 static const int MIN_5_FREQUENCY = 5000; 30 static const int MAX_5_FREQUENCY = 5900; 31 class StaDeviceAppraisal { 32 public: ~StaDeviceAppraisal()33 virtual ~StaDeviceAppraisal() 34 {} 35 36 virtual ErrCode DeviceAppraisals( 37 WifiDeviceConfig &electedDevice, std::vector<InterScanInfo> &scanInfos, WifiLinkedInfo &info) = 0; 38 }; 39 } // namespace Wifi 40 } // namespace OHOS 41 #endif