1 /*
2  * Copyright (C) 2022 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_WIFI_CONFIG_COUNTRY_FREQS_H
17 #define OHOS_WIFI_CONFIG_COUNTRY_FREQS_H
18 
19 #include <string>
20 #include <vector>
21 #include "wifi_ap_msg.h"
22 
23 namespace OHOS {
24 namespace Wifi {
25 struct CountryDefaultBandFreqs {
26     std::string countryCode;
27     BandType band;
28     std::vector<int> freqs;
29 };
30 
31 const std::vector<CountryDefaultBandFreqs> g_countryDefaultFreqs = {
32     /* CN 2.4G valid frequencies */
33     { "CN", BandType::BAND_2GHZ, {2412, 2417, 2422, 2427, 2432, 2437, 2442, 2447, 2452, 2457, 2462, 2467, 2472} },
34     /* CN 5G valid frequencies, exclude radar frequencies */
35     { "CN", BandType::BAND_5GHZ, {5180, 5200, 5220, 5240, 5745, 5765, 5785, 5805, 5825} },
36 };
37 }  // namespace Wifi
38 }  // namespace OHOS
39 
40 #endif // OHOS_WIFI_CONFIG_COUNTRY_FREQS_H