1 /** @file mlan_11h.h
2  *
3  *  @brief This header file contains data structures and
4  *  function declarations of 802.11h
5  *
6  *  Copyright 2008-2024 NXP
7  *
8  *  SPDX-License-Identifier: BSD-3-Clause
9  *
10  */
11 
12 /*************************************************************
13 Change Log:
14     03/26/2009: initial creation
15 *************************************************************/
16 
17 #ifndef _MLAN_11H_
18 #define _MLAN_11H_
19 
20 /** 11H OID bitmasks */
21 #define ENABLE_11H_MASK       MBIT(0)
22 #define MASTER_RADAR_DET_MASK MBIT(1)
23 #define SLAVE_RADAR_DET_MASK  MBIT(2)
24 
25 /** DFS Master Radar Detect global enable */
26 #define DFS_MASTER_RADAR_DETECT_EN (MTRUE)
27 /** DFS Slave Radar Detect global enable */
28 #define DFS_SLAVE_RADAR_DETECT_EN (MFALSE)
29 
30 /**
31  *  11H APIs
32  */
33 /** Initialize the 11h device structure */
34 extern void wlan_11h_init(mlan_adapter *adapter);
35 
36 /** Initialize the 11h interface structure */
37 extern void wlan_11h_priv_init(mlan_private *pmpriv);
38 
39 /** Check if radar detection is required on the specified channel */
40 extern t_bool wlan_11h_radar_detect_required(mlan_private *priv, t_u8 channel);
41 
42 #ifdef DFS_TESTING_SUPPORT
43 /** Handler for DFS_TESTING IOCTL */
44 extern mlan_status wlan_11h_ioctl_dfs_testing(pmlan_adapter pmadapter, pmlan_ioctl_req pioctl_req);
45 #endif
46 
47 /** Get non-DFS channel */
48 extern mlan_status wlan_get_non_dfs_chan(mlan_private *priv, t_u8 *chan);
49 
50 #endif /*_MLAN_11H_ */
51