xref: /OK3568_Linux_fs/kernel/drivers/net/wireless/nxp/mlan/mlan_meas.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /**
2  *  @file mlan_meas.h
3  *
4  *  @brief Interface for the measurement module implemented in mlan_meas.c
5  *
6  *  Driver interface functions and type declarations for the measurement module
7  *    implemented in mlan_meas.c
8  *
9  *  @sa mlan_meas.c
10  *
11  *
12  *  Copyright 2008-2021 NXP
13  *
14  *  This software file (the File) is distributed by NXP
15  *  under the terms of the GNU General Public License Version 2, June 1991
16  *  (the License).  You may use, redistribute and/or modify the File in
17  *  accordance with the terms and conditions of the License, a copy of which
18  *  is available by writing to the Free Software Foundation, Inc.,
19  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
20  *  worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
21  *
22  *  THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
23  *  IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
24  *  ARE EXPRESSLY DISCLAIMED.  The License provides additional details about
25  *  this warranty disclaimer.
26  *
27  */
28 
29 /*************************************************************
30 Change Log:
31     03/25/2009: initial version
32 ************************************************************/
33 
34 #ifndef _MLAN_MEAS_H_
35 #define _MLAN_MEAS_H_
36 
37 #include "mlan_fw.h"
38 
39 /* Send a given measurement request to the firmware, report back the result */
40 extern int wlan_meas_util_send_req(pmlan_private pmpriv,
41 				   pHostCmd_DS_MEASUREMENT_REQUEST pmeas_req,
42 				   t_u32 wait_for_resp_timeout,
43 				   pmlan_ioctl_req pioctl_req,
44 				   pHostCmd_DS_MEASUREMENT_REPORT pmeas_rpt);
45 
46 /* Setup a measurement command before it is sent to the firmware */
47 extern int wlan_meas_cmd_process(mlan_private *pmpriv,
48 				 HostCmd_DS_COMMAND *pcmd_ptr,
49 				 const t_void *pinfo_buf);
50 
51 /* Handle a given measurement command response from the firmware */
52 extern int wlan_meas_cmdresp_process(mlan_private *pmpriv,
53 				     const HostCmd_DS_COMMAND *resp);
54 
55 #endif /* _MLAN_MEAS_H_ */
56