• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
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  * Description: station_info.h 的头文件
15  */
16 
17 
18 /**
19 * @defgroup middleware_service_wifi_station_info WiFi Station Info
20 * @ingroup middleware_service_wifi
21 * @{
22 */
23 
24 #ifndef SERVICE_WIFI_STATION_INFO_H
25 #define SERVICE_WIFI_STATION_INFO_H
26 #include "wifi_device_config.h"
27 
28 #ifdef __cplusplus
29 #if __cplusplus
30 extern "C" {
31 #endif
32 #endif
33 
34 /**
35  * @if Eng
36  * @brief  Returns the information about the STA connected to the AP.
37  * @else
38  * @brief  返回与AP相连的STA信息。
39  * @endif
40  */
41 typedef struct {
42     uint8_t mac_addr[WIFI_MAC_LEN];     /*!< @if Eng MAC address.
43                                              @else  MAC地址。  @endif */
44     int8_t rssi;                        /*!< @if Eng Received signal strength indicator (RSSI).
45                                              @else  RSSI。  @endif */
46     int8_t rsv;                         /*!< @if Eng Reserved.
47                                              @else  保留字段。  @endif */
48     uint32_t best_rate;                 /*!< @if Eng Best sending rate (kbps).
49                                              @else  softap上一次接收相连的station报文最佳发送速率值。  @endif */
50 } wifi_sta_info_stru;
51 
52 #ifdef __cplusplus
53 #if __cplusplus
54 }
55 #endif
56 #endif
57 
58 #endif // SERVICE_WIFI_STATION_INFO_H
59 /** @} */
60