software/drivers/sd8887/src/wlan/mlan/mlan_cmdevt.c
/**
 *  @brief This function checks conditions and prepares to
 *              send sleep confirm command to firmware if OK.
 *
 *  @param pmadapter    A pointer to mlan_adapter structure
 *
 *  @return             N/A
 */
@brief This function checks conditions and prepares to
send sleep confirm command to firmware if OK.

@param pmadapter    A pointer to mlan_adapter structure

@return             N/A
@brief This function checks conditions and prepares to send sleep confirm command to firmware if OK . @param pmadapter A pointer to mlan_adapter structure @return N / A
t_void
wlan_check_ps_cond(mlan_adapter *pmadapter)
{
	ENTER();
	if (!pmadapter->cmd_sent &&
	    !pmadapter->curr_cmd && !IS_CARD_RX_RCVD(pmadapter)) {
		wlan_dnld_sleep_confirm_cmd(pmadapter);
	} else {
		PRINTM(MCMND, "Delay Sleep Confirm (%s%s%s)\n",
		       (pmadapter->cmd_sent) ? "D" : "",
		       (pmadapter->curr_cmd) ? "C" : "",
		       (IS_CARD_RX_RCVD(pmadapter)) ? "R" : "");
	}
	LEAVE();
}
t_void wlan_check_ps_cond ( mlan_adapter * pmadapter ) { ENTER ( ) ; if ( ! pmadapter -> cmd_sent && ! pmadapter -> curr_cmd && ! IS_CARD_RX_RCVD ( pmadapter ) ) { wlan_dnld_sleep_confirm_cmd ( pmadapter ) ; } else { PRINTM ( MCMND , " \n " , ( pmadapter -> cmd_sent ) ? " " : " " , ( pmadapter -> curr_cmd ) ? " " : " " , ( IS_CARD_RX_RCVD ( pmadapter ) ) ? " " : " " ) ; } LEAVE ( ) ; }
@brief This function checks conditions and prepares to
              send sleep confirm command to firmware if OK.
@brief This function checks conditions and prepares to send sleep confirm command to firmware if OK .