software/drivers/sd8887/src/wlan/mlan/mlan_11h.c
/**
 *  @brief Search for a dfs timestamp in the list with desired channel.
 *
 *  Assumes there will only be one timestamp per channel in the list.
 *
 *  @param pmadapter  Pointer to mlan_adapter
 *  @param channel    Channel number
 *
 *  @return           Pointer to timestamp if found, or MNULL
 */
@brief Search for a dfs timestamp in the list with desired channel.
Assumes there will only be one timestamp per channel in the list.

@param pmadapter  Pointer to mlan_adapter
@param channel    Channel number

@return           Pointer to timestamp if found, or MNULL
@brief Search for a dfs timestamp in the list with desired channel . Assumes there will only be one timestamp per channel in the list . @param pmadapter Pointer to mlan_adapter @param channel Channel number @return Pointer to timestamp if found or MNULL
static wlan_dfs_timestamp_t *
wlan_11h_find_dfs_timestamp(mlan_adapter *pmadapter, t_u8 channel)
{
	wlan_dfs_timestamp_t *pts = MNULL, *pts_found = MNULL;
	ENTER();
	pts = (wlan_dfs_timestamp_t *)util_peek_list(pmadapter->pmoal_handle,
						     &pmadapter->state_dfs.
						     dfs_ts_head, MNULL, MNULL);
	while (pts &&
	       pts !=
	       (wlan_dfs_timestamp_t *)&pmadapter->state_dfs.dfs_ts_head) {
		PRINTM(MINFO,
		       "dfs_timestamp(@ %p) - chan=%d, repr=%d(%s),"
		       " time(sec.usec)=%lu.%06lu\n", pts, pts->channel,
		       pts->represents, DFS_TS_REPR_STRINGS[pts->represents],
		       pts->ts_sec, pts->ts_usec);
		if (pts->channel == channel) {
			pts_found = pts;
			break;
		}
		pts = pts->pnext;
	}
	LEAVE();
	return pts_found;
}
static wlan_dfs_timestamp_t * wlan_11h_find_dfs_timestamp ( mlan_adapter * pmadapter , t_u8 channel ) { wlan_dfs_timestamp_t * pts = MNULL , * pts_found = MNULL ; ENTER ( ) ; pts = ( wlan_dfs_timestamp_t * ) util_peek_list ( pmadapter -> pmoal_handle , & pmadapter -> state_dfs . dfs_ts_head , MNULL , MNULL ) ; while ( pts && pts != ( wlan_dfs_timestamp_t * ) & pmadapter -> state_dfs . dfs_ts_head ) { PRINTM ( MINFO , " " " \n " , pts , pts -> channel , pts -> represents , DFS_TS_REPR_STRINGS [ pts -> represents ] , pts -> ts_sec , pts -> ts_usec ) ; if ( pts -> channel == channel ) { pts_found = pts ; break ; } pts = pts -> pnext ; } LEAVE ( ) ; return pts_found ; }
@brief Search for a dfs timestamp in the list with desired channel.
@brief Search for a dfs timestamp in the list with desired channel .