software/drivers/sd8887/src/wlan/mlan/mlan_meas.c
/**
 *  @brief Handle the command response from the firmware for a measurement
 *         command
 *
 *  Use the Command field to determine if the command response being
 *    is for meas.  Call the local command response handler accordingly for:
 *
 *        - HostCmd_CMD_802_MEASUREMENT_REQUEST
 *        - HostCmd_CMD_802_MEASUREMENT_REPORT
 *
 *  @param pmpriv Private driver information structure
 *  @param resp   HostCmd_DS_COMMAND struct returned from the firmware command
 *
 *  @return     MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
 */
@brief Handle the command response from the firmware for a measurement
command

Use the Command field to determine if the command response being
is for meas.  Call the local command response handler accordingly for.



@param pmpriv Private driver information structure
@param resp   HostCmd_DS_COMMAND struct returned from the firmware command


@brief Handle the command response from the firmware for a measurement command Use the Command field to determine if the command response being is for meas . Call the local command response handler accordingly for . @param pmpriv Private driver information structure @param resp HostCmd_DS_COMMAND struct returned from the firmware command
int
wlan_meas_cmdresp_process(mlan_private *pmpriv, const HostCmd_DS_COMMAND *resp)
{
	int ret = MLAN_STATUS_SUCCESS;
	ENTER();
	switch (resp->command) {
	case HostCmd_CMD_MEASUREMENT_REQUEST:
		PRINTM(MINFO, "Meas: Req Resp: Sz=%u, Seq=%u, Ret=%u\n",
		       resp->size, resp->seq_num, resp->result);
		break;
	case HostCmd_CMD_MEASUREMENT_REPORT:
		ret = wlan_meas_cmdresp_get_report(pmpriv, resp);
		break;
	default:
		ret = MLAN_STATUS_FAILURE;
	}
	LEAVE();
	return ret;
}
int wlan_meas_cmdresp_process ( mlan_private * pmpriv , const HostCmd_DS_COMMAND * resp ) { int ret = MLAN_STATUS_SUCCESS ; ENTER ( ) ; switch ( resp -> command ) { case HostCmd_CMD_MEASUREMENT_REQUEST : PRINTM ( MINFO , " \n " , resp -> size , resp -> seq_num , resp -> result ) ; break ; case HostCmd_CMD_MEASUREMENT_REPORT : ret = wlan_meas_cmdresp_get_report ( pmpriv , resp ) ; break ; default : ret = MLAN_STATUS_FAILURE ; } LEAVE ( ) ; return ret ; }
@brief Handle the command response from the firmware for a measurement
         command
@brief Handle the command response from the firmware for a measurement command