software/drivers/sd8887/src/wlan/mlan/mlan_sdio.c
/**
 *  @brief This function checks if the interface is ready to download
 *  or not while other download interface is present
 *
 *  @param pmadapter  A pointer to mlan_adapter structure
 *  @param val        Winner status (0: winner)
 *  @return           MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
 *
 */
@brief This function checks if the interface is ready to download
or not while other download interface is present

@param pmadapter  A pointer to mlan_adapter structure
@param val        Winner status (0: winner)
@return           MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@brief This function checks if the interface is ready to download or not while other download interface is present @param pmadapter A pointer to mlan_adapter structure @param val Winner status ( 0 : winner ) @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
mlan_status
wlan_check_winner_status(mlan_adapter *pmadapter, t_u32 *val)
{
	t_u32 winner = 0;
	pmlan_callbacks pcb;
	t_u8 card_fw_status0_reg = CARD_FW_STATUS0_REG;
	ENTER();
	pcb = &pmadapter->callbacks;
	if (MLAN_STATUS_SUCCESS !=
	    pcb->moal_read_reg(pmadapter->pmoal_handle, card_fw_status0_reg,
			       &winner)) {
		LEAVE();
		return MLAN_STATUS_FAILURE;
	}
	*val = winner;
	LEAVE();
	return MLAN_STATUS_SUCCESS;
}
mlan_status wlan_check_winner_status ( mlan_adapter * pmadapter , t_u32 * val ) { t_u32 winner = 0 ; pmlan_callbacks pcb ; t_u8 card_fw_status0_reg = CARD_FW_STATUS0_REG ; ENTER ( ) ; pcb = & pmadapter -> callbacks ; if ( MLAN_STATUS_SUCCESS != pcb -> moal_read_reg ( pmadapter -> pmoal_handle , card_fw_status0_reg , & winner ) ) { LEAVE ( ) ; return MLAN_STATUS_FAILURE ; } * val = winner ; LEAVE ( ) ; return MLAN_STATUS_SUCCESS ; }
@brief This function checks if the interface is ready to download
  or not while other download interface is present
@brief This function checks if the interface is ready to download or not while other download interface is present