software/drivers/sd8887/src/wlan/mlan/mlan_meas.c
/**
 *  @brief Prepare CMD_MEASURMENT_REPORT firmware command
 *
 *  @param pmpriv     Private driver information structure
 *  @param pcmd_ptr   Output parameter: Pointer to the command being prepared
 *                    for the firmware
 *  @param pinfo_buf  HostCmd_DS_MEASUREMENT_REQUEST passed as void data block
 *
 *  @return          MLAN_STATUS_SUCCESS
 */
@brief Prepare CMD_MEASURMENT_REPORT firmware command
@param pmpriv     Private driver information structure
@param pcmd_ptr   Output parameter: Pointer to the command being prepared
for the firmware
@param pinfo_buf  HostCmd_DS_MEASUREMENT_REQUEST passed as void data block


@brief Prepare CMD_MEASURMENT_REPORT firmware command @param pmpriv Private driver information structure @param pcmd_ptr Output parameter : Pointer to the command being prepared for the firmware @param pinfo_buf HostCmd_DS_MEASUREMENT_REQUEST passed as void data block
static int
wlan_meas_cmd_request(mlan_private *pmpriv,
		      HostCmd_DS_COMMAND *pcmd_ptr, const void *pinfo_buf)
{
	const HostCmd_DS_MEASUREMENT_REQUEST *pmeas_req =
		(HostCmd_DS_MEASUREMENT_REQUEST *)pinfo_buf;
	ENTER();
	pcmd_ptr->command = HostCmd_CMD_MEASUREMENT_REQUEST;
	pcmd_ptr->size = sizeof(HostCmd_DS_MEASUREMENT_REQUEST) + S_DS_GEN;
	memcpy(pmpriv->adapter, &pcmd_ptr->params.meas_req, pmeas_req,
	       sizeof(pcmd_ptr->params.meas_req));
	PRINTM(MINFO, "Meas: Req: %#x-%u, Seq=%u, Ret=%u\n",
	       pcmd_ptr->command, pcmd_ptr->size, pcmd_ptr->seq_num,
	       pcmd_ptr->result);
	wlan_meas_dump_meas_req(pmeas_req);
	LEAVE();
	return MLAN_STATUS_SUCCESS;
}
static int wlan_meas_cmd_request ( mlan_private * pmpriv , HostCmd_DS_COMMAND * pcmd_ptr , const void * pinfo_buf ) { const HostCmd_DS_MEASUREMENT_REQUEST * pmeas_req = ( HostCmd_DS_MEASUREMENT_REQUEST * ) pinfo_buf ; ENTER ( ) ; pcmd_ptr -> command = HostCmd_CMD_MEASUREMENT_REQUEST ; pcmd_ptr -> size = sizeof ( HostCmd_DS_MEASUREMENT_REQUEST ) + S_DS_GEN ; memcpy ( pmpriv -> adapter , & pcmd_ptr -> params . meas_req , pmeas_req , sizeof ( pcmd_ptr -> params . meas_req ) ) ; PRINTM ( MINFO , " \n " , pcmd_ptr -> command , pcmd_ptr -> size , pcmd_ptr -> seq_num , pcmd_ptr -> result ) ; wlan_meas_dump_meas_req ( pmeas_req ) ; LEAVE ( ) ; return MLAN_STATUS_SUCCESS ; }
@brief Prepare CMD_MEASURMENT_REPORT firmware command
  @param pmpriv     Private driver information structure
  @param pcmd_ptr   Output parameter: Pointer to the command being prepared
                    for the firmware
  @param pinfo_buf  HostCmd_DS_MEASUREMENT_REQUEST passed as void data block
@brief Prepare CMD_MEASURMENT_REPORT firmware command @param pmpriv Private driver information structure @param pcmd_ptr Output parameter : Pointer to the command being prepared for the firmware @param pinfo_buf HostCmd_DS_MEASUREMENT_REQUEST passed as void data block