1 /*
2  * Copyright (c) 2020 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 /**
17  * @addtogroup wifiservice
18  * @{
19  *
20  * @brief Provides functions for the Wi-Fi station and hotspot modes.
21  *
22  * You can use this module to enable and disable the Wi-Fi station or hotspot mode, connect to and disconnect from a
23  * station or hotspot, query the station or hotspot status, and listen for events. \n
24  *
25  * @since 7
26  */
27 
28 /**
29  * @file wifi_scan_info.h
30  *
31  * @brief Defines the data structure and macro of the Wi-Fi scan result information.
32  *
33  * @since 7
34  */
35 
36 #ifndef WIFI_SCAN_INFO_C_H
37 #define WIFI_SCAN_INFO_C_H
38 
39 #include "wifi_device_config.h"
40 
41 /**
42  * @brief Indicates the maximum number of hotspots that can be detected in a Wi-Fi scan.
43  */
44 #define WIFI_SCAN_HOTSPOT_LIMIT 64
45 
46 /**
47  * @brief Represents the Wi-Fi scan result information.
48  *
49  * @since 7
50  */
51 typedef struct {
52     /** Service set ID (SSID). For its length, see {@link WIFI_MAX_SSID_LEN}. */
53     char ssid[WIFI_MAX_SSID_LEN];
54     /** Basic service set ID (BSSID). For its length, see {@link WIFI_MAC_LEN}. */
55     unsigned char bssid[WIFI_MAC_LEN];
56     /** Security type. For details, see {@link WifiSecurityType}. */
57     int securityType;
58     /** Received signal strength indicator (RSSI) */
59     int rssi;
60     /** Frequency band */
61     int band;
62     /** Frequency in MHz */
63     int frequency;
64 } WifiScanInfo;
65 
66 #endif // WIFI_SCAN_INFO_C_H
67 /** @} */
68