software/drivers/sd8887/src/wlan/mlan/mlan_cmdevt.c
/**
 *  @brief This function will dump the pending commands id
 *
 *  @param pmadapter    A pointer to mlan_adapter
 *
 *  @return             N/A
 */
@brief This function will dump the pending commands id
@param pmadapter    A pointer to mlan_adapter

@return             N/A
@brief This function will dump the pending commands id @param pmadapter A pointer to mlan_adapter @return N / A
static void
wlan_dump_pending_commands(pmlan_adapter pmadapter)
{
	cmd_ctrl_node *pcmd_node = MNULL;
	HostCmd_DS_COMMAND *pcmd;
	ENTER();
	wlan_request_cmd_lock(pmadapter);
	pcmd_node =
		(cmd_ctrl_node *)util_peek_list(pmadapter->pmoal_handle,
						&pmadapter->cmd_pending_q,
						MNULL, MNULL);
	if (!pcmd_node) {
		wlan_release_cmd_lock(pmadapter);
		LEAVE();
		return;
	}
	while (pcmd_node != (cmd_ctrl_node *)&pmadapter->cmd_pending_q) {
		pcmd = (HostCmd_DS_COMMAND *)(pcmd_node->cmdbuf->pbuf +
					      pcmd_node->cmdbuf->data_offset);
		PRINTM(MERROR, "pending command id: 0x%x ioctl_buf=%p\n",
		       wlan_le16_to_cpu(pcmd->command), pcmd_node->pioctl_buf);
		pcmd_node = pcmd_node->pnext;
	}
#ifdef STA_SUPPORT
	wlan_check_scan_queue(pmadapter);
#endif
	wlan_release_cmd_lock(pmadapter);
	LEAVE();
	return;
}
static void wlan_dump_pending_commands ( pmlan_adapter pmadapter ) { cmd_ctrl_node * pcmd_node = MNULL ; HostCmd_DS_COMMAND * pcmd ; ENTER ( ) ; wlan_request_cmd_lock ( pmadapter ) ; pcmd_node = ( cmd_ctrl_node * ) util_peek_list ( pmadapter -> pmoal_handle , & pmadapter -> cmd_pending_q , MNULL , MNULL ) ; if ( ! pcmd_node ) { wlan_release_cmd_lock ( pmadapter ) ; LEAVE ( ) ; return ; } while ( pcmd_node != ( cmd_ctrl_node * ) & pmadapter -> cmd_pending_q ) { pcmd = ( HostCmd_DS_COMMAND * ) ( pcmd_node -> cmdbuf -> pbuf + pcmd_node -> cmdbuf -> data_offset ) ; PRINTM ( MERROR , " \n " , wlan_le16_to_cpu ( pcmd -> command ) , pcmd_node -> pioctl_buf ) ; pcmd_node = pcmd_node -> pnext ; } #ifdef STA_SUPPORT wlan_check_scan_queue ( pmadapter ) ; #endif wlan_release_cmd_lock ( pmadapter ) ; LEAVE ( ) ; return ; }
@brief This function will dump the pending commands id
  @param pmadapter    A pointer to mlan_adapter
@brief This function will dump the pending commands id @param pmadapter A pointer to mlan_adapter