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 16 #ifndef OHOS_WIFISCANPARAM_H 17 #define OHOS_WIFISCANPARAM_H 18 19 #include <string> 20 #include <vector> 21 22 namespace OHOS { 23 namespace Wifi { 24 struct WifiScanParam { 25 std::vector<std::string> hiddenNetworkSsid; /* Hiding Network SSIDs */ 26 std::vector<int> scanFreqs; /* Scan frequency */ 27 int scanStyle; 28 }; 29 30 struct WifiPnoScanParam { 31 int scanInterval; /* PNO Scan Interval */ 32 std::vector<int> scanFreqs; /* Scanning frequency */ 33 std::vector<std::string> hiddenSsid; /* Network name of hidden network */ 34 std::vector<std::string> savedSsid; /* Network name of saved network */ 35 int minRssi2Dot4Ghz; /* Minimum 2.4 GHz network signal strength */ 36 int minRssi5Ghz; /* Minimum 5 GHz network signal strength */ 37 WifiPnoScanParamWifiPnoScanParam38 WifiPnoScanParam() 39 { 40 scanFreqs.clear(); 41 hiddenSsid.clear(); 42 savedSsid.clear(); 43 44 scanInterval = 0; 45 minRssi2Dot4Ghz = 0; 46 minRssi5Ghz = 0; 47 } 48 ~WifiPnoScanParamWifiPnoScanParam49 ~WifiPnoScanParam() 50 { 51 scanFreqs.clear(); 52 hiddenSsid.clear(); 53 savedSsid.clear(); 54 } 55 }; 56 } // namespace Wifi 57 } // namespace OHOS 58 #endif