software/drivers/sd8887/src/wlan/mlan/mlan_11n_rxreorder.c
/**
  *  @brief This function prepares command for deleting 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 deleting 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 deleting 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_delba(mlan_private *priv, HostCmd_DS_COMMAND *cmd, void *pdata_buf)
{
	HostCmd_DS_11N_DELBA *pdel_ba = (HostCmd_DS_11N_DELBA *)
		&cmd->params.del_ba;
	ENTER();
	cmd->command = wlan_cpu_to_le16(HostCmd_CMD_11N_DELBA);
	cmd->size = wlan_cpu_to_le16(sizeof(HostCmd_DS_11N_DELBA) + S_DS_GEN);
	memcpy(priv->adapter, pdel_ba, pdata_buf, sizeof(HostCmd_DS_11N_DELBA));
	pdel_ba->del_ba_param_set = wlan_cpu_to_le16(pdel_ba->del_ba_param_set);
	pdel_ba->reason_code = wlan_cpu_to_le16(pdel_ba->reason_code);
	pdel_ba->del_result = 0;
	LEAVE();
	return MLAN_STATUS_SUCCESS;
}
mlan_status wlan_cmd_11n_delba ( mlan_private * priv , HostCmd_DS_COMMAND * cmd , void * pdata_buf ) { HostCmd_DS_11N_DELBA * pdel_ba = ( HostCmd_DS_11N_DELBA * ) & cmd -> params . del_ba ; ENTER ( ) ; cmd -> command = wlan_cpu_to_le16 ( HostCmd_CMD_11N_DELBA ) ; cmd -> size = wlan_cpu_to_le16 ( sizeof ( HostCmd_DS_11N_DELBA ) + S_DS_GEN ) ; memcpy ( priv -> adapter , pdel_ba , pdata_buf , sizeof ( HostCmd_DS_11N_DELBA ) ) ; pdel_ba -> del_ba_param_set = wlan_cpu_to_le16 ( pdel_ba -> del_ba_param_set ) ; pdel_ba -> reason_code = wlan_cpu_to_le16 ( pdel_ba -> reason_code ) ; pdel_ba -> del_result = 0 ; LEAVE ( ) ; return MLAN_STATUS_SUCCESS ; }
@brief This function prepares command for deleting a block ack
          request.
@brief This function prepares command for deleting a block ack request .