hc
2024-03-25 edb30157bad0c0001c32b854271ace01d3b9a16a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
 ******************************************************************************
 *
 * @file rwnx_tdls.h
 *
 * @brief TDLS function declarations
 *
 * Copyright (C) RivieraWaves 2012-2019
 *
 ******************************************************************************
 */
 
#ifndef RWNX_TDLS_H_
#define RWNX_TDLS_H_
 
#include "rwnx_defs.h"
 
struct ieee_types_header {
   u8 element_id;
   u8 len;
} __packed;
 
struct ieee_types_bss_co_2040 {
   struct ieee_types_header ieee_hdr;
   u8 bss_2040co;
} __packed;
 
struct ieee_types_extcap {
   struct ieee_types_header ieee_hdr;
   u8 ext_capab[8];
} __packed;
 
struct ieee_types_vht_cap {
   struct ieee_types_header ieee_hdr;
   struct ieee80211_vht_cap vhtcap;
} __packed;
 
struct ieee_types_vht_oper {
   struct ieee_types_header ieee_hdr;
   struct ieee80211_vht_operation vhtoper;
} __packed;
 
struct ieee_types_aid {
   struct ieee_types_header ieee_hdr;
   u16 aid;
} __packed;
 
int rwnx_tdls_send_mgmt_packet_data(struct rwnx_hw *rwnx_hw, struct rwnx_vif *rwnx_vif,
                        const u8 *peer, u8 action_code, u8 dialog_token,
                        u16 status_code, u32 peer_capability, bool initiator,
                        const u8 *extra_ies, size_t extra_ies_len, u8 oper_class,
                        struct cfg80211_chan_def *chandef);
 
#endif /* RWNX_TDLS_H_ */