software/drivers/sd8887/src/wlan/mlan/mlan_11h.c
/**
 *  @brief Utility function to get a random number based on the underlying OS
 *
 *  @param pmadapter Pointer to mlan_adapter
 *  @return random integer
 */
@brief Utility function to get a random number based on the underlying OS
@param pmadapter Pointer to mlan_adapter
@return random integer
@brief Utility function to get a random number based on the underlying OS @param pmadapter Pointer to mlan_adapter @return random integer
static t_u32
wlan_11h_get_random_num(pmlan_adapter pmadapter)
{
	t_u32 sec, usec;
	ENTER();
	pmadapter->callbacks.moal_get_system_time(pmadapter->pmoal_handle, &sec,
						  &usec);
	sec = (sec & 0xFFFF) + (sec >> 16);
	usec = (usec & 0xFFFF) + (usec >> 16);
	LEAVE();
	return (usec << 16) | sec;
}
static t_u32 wlan_11h_get_random_num ( pmlan_adapter pmadapter ) { t_u32 sec , usec ; ENTER ( ) ; pmadapter -> callbacks . moal_get_system_time ( pmadapter -> pmoal_handle , & sec , & usec ) ; sec = ( sec & 0xFFFF ) + ( sec >> 16 ) ; usec = ( usec & 0xFFFF ) + ( usec >> 16 ) ; LEAVE ( ) ; return ( usec << 16 ) | sec ; }
@brief Utility function to get a random number based on the underlying OS
  @param pmadapter Pointer to mlan_adapter
  @return random integer
@brief Utility function to get a random number based on the underlying OS @param pmadapter Pointer to mlan_adapter @return random integer