software/drivers/sd8887/src/wlan/mlinux/moal_ioctl.c
/**
 *  @brief Get version
 *
 *  @param handle       A pointer to moal_handle structure
 *  @param version      A pointer to version buffer
 *  @param max_len      max length of version buffer
 *
 *  @return             N/A
 */
@brief Get version
@param handle       A pointer to moal_handle structure
@param version      A pointer to version buffer
@param max_len      max length of version buffer

@return             N/A
@brief Get version @param handle A pointer to moal_handle structure @param version A pointer to version buffer @param max_len max length of version buffer @return N / A
void
woal_get_version(moal_handle *handle, char *version, int max_len)
{
	union {
		t_u32 l;
		t_u8 c[4];
	} ver;
	char fw_ver[32];
	ENTER();
	ver.l = handle->fw_release_number;
	snprintf(fw_ver, sizeof(fw_ver), "%u.%u.%u.p%u",
		 ver.c[2], ver.c[1], ver.c[0], ver.c[3]);
	snprintf(version, max_len, handle->driver_version, fw_ver);
	LEAVE();
}
void woal_get_version ( moal_handle * handle , char * version , int max_len ) { union { t_u32 l ; t_u8 c [ 4 ] ; } ver ; char fw_ver [ 32 ] ; ENTER ( ) ; ver . l = handle -> fw_release_number ; snprintf ( fw_ver , sizeof ( fw_ver ) , " " , ver . c [ 2 ] , ver . c [ 1 ] , ver . c [ 0 ] , ver . c [ 3 ] ) ; snprintf ( version , max_len , handle -> driver_version , fw_ver ) ; LEAVE ( ) ; }
@brief Get version
  @param handle       A pointer to moal_handle structure
  @param version      A pointer to version buffer
  @param max_len      max length of version buffer
@brief Get version @param handle A pointer to moal_handle structure @param version A pointer to version buffer @param max_len max length of version buffer