software/drivers/sd8887/src/wlan/mlan/mlan_11n_rxreorder.c
/**
  *  @brief This function prepares command for adding a block ack
  *          request.
  *
  *  @param priv        A pointer to mlan_private structure
  *  @param cmd         A pointer to HostCmd_DS_COMMAND structure
  *  @param pdata_buf   A pointer to data buffer
  *
  *  @return            MLAN_STATUS_SUCCESS
  */
@brief This function prepares command for adding a block ack
request.

@param priv        A pointer to mlan_private structure
@param cmd         A pointer to HostCmd_DS_COMMAND structure
@param pdata_buf   A pointer to data buffer


@brief This function prepares command for adding a block ack request . @param priv A pointer to mlan_private structure @param cmd A pointer to HostCmd_DS_COMMAND structure @param pdata_buf A pointer to data buffer
mlan_status
wlan_cmd_11n_addba_req(mlan_private *priv,
		       HostCmd_DS_COMMAND *cmd, t_void *pdata_buf)
{
	HostCmd_DS_11N_ADDBA_REQ *padd_ba_req = (HostCmd_DS_11N_ADDBA_REQ *)
		&cmd->params.add_ba_req;
	ENTER();
	cmd->command = wlan_cpu_to_le16(HostCmd_CMD_11N_ADDBA_REQ);
	cmd->size = wlan_cpu_to_le16(sizeof(HostCmd_DS_11N_ADDBA_REQ) +
				     S_DS_GEN);
	memcpy(priv->adapter, padd_ba_req, pdata_buf,
	       sizeof(HostCmd_DS_11N_ADDBA_REQ));
	padd_ba_req->block_ack_param_set =
		wlan_cpu_to_le16(padd_ba_req->block_ack_param_set);
	padd_ba_req->block_ack_tmo =
		wlan_cpu_to_le16(padd_ba_req->block_ack_tmo);
	padd_ba_req->ssn = wlan_cpu_to_le16(padd_ba_req->ssn);
	padd_ba_req->add_req_result = 0;
	LEAVE();
	return MLAN_STATUS_SUCCESS;
}
mlan_status wlan_cmd_11n_addba_req ( mlan_private * priv , HostCmd_DS_COMMAND * cmd , t_void * pdata_buf ) { HostCmd_DS_11N_ADDBA_REQ * padd_ba_req = ( HostCmd_DS_11N_ADDBA_REQ * ) & cmd -> params . add_ba_req ; ENTER ( ) ; cmd -> command = wlan_cpu_to_le16 ( HostCmd_CMD_11N_ADDBA_REQ ) ; cmd -> size = wlan_cpu_to_le16 ( sizeof ( HostCmd_DS_11N_ADDBA_REQ ) + S_DS_GEN ) ; memcpy ( priv -> adapter , padd_ba_req , pdata_buf , sizeof ( HostCmd_DS_11N_ADDBA_REQ ) ) ; padd_ba_req -> block_ack_param_set = wlan_cpu_to_le16 ( padd_ba_req -> block_ack_param_set ) ; padd_ba_req -> block_ack_tmo = wlan_cpu_to_le16 ( padd_ba_req -> block_ack_tmo ) ; padd_ba_req -> ssn = wlan_cpu_to_le16 ( padd_ba_req -> ssn ) ; padd_ba_req -> add_req_result = 0 ; LEAVE ( ) ; return MLAN_STATUS_SUCCESS ; }
@brief This function prepares command for adding a block ack
          request.
@brief This function prepares command for adding a block ack request .