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