hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
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
61
62
63
64
65
66
67
68
/******************************************************************************
 *
 * Copyright(c)2019 Realtek Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 *****************************************************************************/
#ifndef _PHL_P2PPS_H_
#define _PHL_P2PPS_H_
#ifdef CONFIG_PHL_P2PPS
#ifdef RTW_WKARD_P2PPS_REFINE
 
enum rtw_phl_status
phl_p2pps_init(struct phl_info_t* phl_info);
 
void
phl_p2pps_deinit(struct phl_info_t* phl_info);
 
void
phl_p2pps_query_noa_with_cnt255(struct phl_info_t* phl_info,
   struct rtw_wifi_role_t *w_role,
   struct rtw_phl_noa_desc *desc);
 
void
phl_p2pps_tsf32_tog_handler(struct phl_info_t* phl_info);
 
void
phl_p2pps_noa_resume_all(struct phl_info_t *phl,
   struct rtw_wifi_role_t *w_role);
void
phl_p2pps_noa_all_role_resume(struct phl_info_t *phl_info,
   u8 band_idx);
 
void
phl_p2pps_noa_pause_all(struct phl_info_t *phl,
   struct rtw_wifi_role_t *w_role);
void
phl_p2pps_noa_all_role_pause(struct phl_info_t *phl_info,
   u8 band_idx);
 
void
phl_p2pps_noa_disable_all(struct phl_info_t *phl,
   struct rtw_wifi_role_t *w_role);
 
enum rtw_phl_status
rtw_phl_p2pps_noa_update(void *phl,
   struct rtw_phl_noa_desc *in_desc);
#endif
#else
#define phl_p2pps_init(_phl_info) RTW_PHL_STATUS_SUCCESS
#define phl_p2pps_deinit(_phl_info)
#define rtw_phl_p2pps_noa_update(_phl, _in_desc) RTW_PHL_STATUS_SUCCESS
#define phl_p2pps_tsf32_tog_handler(_phl_info)
#define phl_p2pps_query_noa_with_cnt255(_phl, _wrole, _desc)
#define phl_p2pps_noa_resume_all(_phl, _w_role)
#define phl_p2pps_noa_all_role_resume(_phl, _band_idx)
#define phl_p2pps_noa_pause_all(_phl, _w_role)
#define phl_p2pps_noa_all_role_pause(_phl, _band_idx)
#define phl_p2pps_noa_disable_all(_phl, _w_role)
#endif
#endif