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


@brief Prepare CMD_802_11_TPC_ADAPT_REQ firmware command @param priv Private driver information structure @param pcmd_ptr Output parameter : Pointer to the command being prepared for the firmware @param pinfo_buf HostCmd_DS_802_11_TPC_ADAPT_REQ passed as void data block
static mlan_status
wlan_11h_cmd_tpc_request(mlan_private *priv,
			 HostCmd_DS_COMMAND *pcmd_ptr, const t_void *pinfo_buf)
{
	ENTER();
	memcpy(priv->adapter, &pcmd_ptr->params.tpc_req, pinfo_buf,
	       sizeof(HostCmd_DS_802_11_TPC_ADAPT_REQ));
	pcmd_ptr->params.tpc_req.req.timeout =
		wlan_cpu_to_le16(pcmd_ptr->params.tpc_req.req.timeout);
	pcmd_ptr->size = sizeof(HostCmd_DS_802_11_TPC_ADAPT_REQ) + S_DS_GEN;
	HEXDUMP("11h: 11_TPC_ADAPT_REQ:", (t_u8 *)pcmd_ptr,
		(t_u32)pcmd_ptr->size);
	LEAVE();
	return MLAN_STATUS_SUCCESS;
}
static mlan_status wlan_11h_cmd_tpc_request ( mlan_private * priv , HostCmd_DS_COMMAND * pcmd_ptr , const t_void * pinfo_buf ) { ENTER ( ) ; memcpy ( priv -> adapter , & pcmd_ptr -> params . tpc_req , pinfo_buf , sizeof ( HostCmd_DS_802_11_TPC_ADAPT_REQ ) ) ; pcmd_ptr -> params . tpc_req . req . timeout = wlan_cpu_to_le16 ( pcmd_ptr -> params . tpc_req . req . timeout ) ; pcmd_ptr -> size = sizeof ( HostCmd_DS_802_11_TPC_ADAPT_REQ ) + S_DS_GEN ; HEXDUMP ( " " , ( t_u8 * ) pcmd_ptr , ( t_u32 ) pcmd_ptr -> size ) ; LEAVE ( ) ; return MLAN_STATUS_SUCCESS ; }
@brief Prepare CMD_802_11_TPC_ADAPT_REQ firmware command
  @param priv      Private driver information structure
  @param pcmd_ptr  Output parameter: Pointer to the command being prepared
                   for the firmware
  @param pinfo_buf HostCmd_DS_802_11_TPC_ADAPT_REQ passed as void data block
@brief Prepare CMD_802_11_TPC_ADAPT_REQ firmware command @param priv Private driver information structure @param pcmd_ptr Output parameter : Pointer to the command being prepared for the firmware @param pinfo_buf HostCmd_DS_802_11_TPC_ADAPT_REQ passed as void data block
/* Converted to little endian in wlan_11h_cmd_process */