software/drivers/sd8887/src/wlan/mlan/mlan_cmdevt.c
/**
 *  @brief This function cleans command node.
 *
 *  @param pmadapter    A pointer to mlan_adapter structure
 *  @param pcmd_node    A pointer to cmd_ctrl_node structure
 *
 *  @return             N/A
 */
@brief This function cleans command node.
@param pmadapter    A pointer to mlan_adapter structure
@param pcmd_node    A pointer to cmd_ctrl_node structure

@return             N/A
@brief This function cleans command node . @param pmadapter A pointer to mlan_adapter structure @param pcmd_node A pointer to cmd_ctrl_node structure @return N / A
static t_void
wlan_clean_cmd_node(pmlan_adapter pmadapter, cmd_ctrl_node *pcmd_node)
{
	ENTER();
	if (pcmd_node == MNULL) {
		LEAVE();
		return;
	}
	pcmd_node->cmd_no = 0;
	pcmd_node->cmd_flag = 0;
	pcmd_node->pioctl_buf = MNULL;
	pcmd_node->pdata_buf = MNULL;
	if (pcmd_node->respbuf) {
		wlan_free_mlan_buffer(pmadapter, pcmd_node->respbuf);
		pcmd_node->respbuf = MNULL;
	}
	LEAVE();
	return;
}
static t_void wlan_clean_cmd_node ( pmlan_adapter pmadapter , cmd_ctrl_node * pcmd_node ) { ENTER ( ) ; if ( pcmd_node == MNULL ) { LEAVE ( ) ; return ; } pcmd_node -> cmd_no = 0 ; pcmd_node -> cmd_flag = 0 ; pcmd_node -> pioctl_buf = MNULL ; pcmd_node -> pdata_buf = MNULL ; if ( pcmd_node -> respbuf ) { wlan_free_mlan_buffer ( pmadapter , pcmd_node -> respbuf ) ; pcmd_node -> respbuf = MNULL ; } LEAVE ( ) ; return ; }
@brief This function cleans command node.
@brief This function cleans command node .