1 /*
2  * Copyright (C) 2015-2018 Alibaba Group Holding Limited
3  */
4 
5 #ifndef __AWSS_HT40_H__
6 #define __AWSS_HT40_H__
7 
8 #ifdef AWSS_SUPPORT_HT40
9 
10 #include <stdint.h>
11 
12 #include "os.h"
13 #include "zconfig_ieee80211.h"
14 #include "zconfig_protocol.h"
15 
16 #if defined(__cplusplus) /* If this is a C++ compiler, use C linkage */
17 extern "C" {
18 #endif
19 
20 struct ht40_ctrl {
21     uint16_t length;
22     uint8_t filter;
23     signed char rssi;
24 };
25 
26 int ht40_init(void);
27 int awss_ieee80211_ht_ctrl_process(uint8_t *ht_ctrl, int len, int link_type,
28                                    struct parser_res *res, signed char rssi);
29 int awss_recv_callback_ht_ctrl(struct parser_res *res);
30 #if defined(__cplusplus) /* If this is a C++ compiler, use C linkage */
31 }
32 #endif
33 #endif
34 #endif
35