blob: 390b95002855cf2ea2045003e8df6303c39cf870 (
plain)
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
55
56
57
58
59
60
|
/**
****************************************************************************************
*
* @file rwnx_p2p.h
*
* @brief P2P Listen function declarations
*
*
*
****************************************************************************************
*/
#ifndef _ECRNX_P2P_H_
#define _ECRNX_P2P_H_
/**
* INCLUDE FILES
****************************************************************************************
*/
#include <net/cfg80211.h>
/**
* DEFINES
****************************************************************************************
*/
/**
* TYPE DEFINITIONS
****************************************************************************************
*/
struct ecrnx_p2p_listen {
struct ecrnx_vif *ecrnx_vif;
struct ieee80211_channel listen_chan;
bool listen_started;
bool pending_req;
u64 cookie;
struct wireless_dev *pending_listen_wdev;
unsigned int listen_duration;
struct timer_list listen_timer; /* listen duration */
struct work_struct listen_expired_work; /* listen expire */
wait_queue_head_t rxdataq;
int rxdatas;
};
/**
* FUNCTION DECLARATIONS
****************************************************************************************
*/
void ecrnx_p2p_listen_init(struct ecrnx_p2p_listen *p2p_listen);
void ecrnx_p2p_listen_expired(struct work_struct *work);
/**
****************************************************************************************
* @brief TODO [LT]
****************************************************************************************
*/
#endif /* _RWNX_P2P_H_ */
|