software/drivers/sd8887/src/wlan/mlan/mlan_11h.c
/**
 *  @brief Return whether the slave interface is active, and on DFS channel.
 *  priv is assumed to already be a dfs slave interface, doesn't check this.
 *
 *  @param priv  Private driver information structure
 *
 *  @return
 *    - MTRUE if priv is slave, and meets both conditions
 *    - MFALSE otherwise
 */
@brief Return whether the slave interface is active, and on DFS channel.
priv is assumed to already be a dfs slave interface, doesn't check this.

@param priv  Private driver information structure

@return
- MTRUE if priv is slave, and meets both conditions
- MFALSE otherwise
@brief Return whether the slave interface is active and on DFS channel . priv is assumed to already be a dfs slave interface doesn ' t check this . @param priv Private driver information structure @return - MTRUE if priv is slave and meets both conditions - MFALSE otherwise
static t_bool
wlan_11h_is_slave_active_on_dfs_chan(mlan_private *priv)
{
	t_bool ret = MFALSE;
	ENTER();
	if ((priv->media_connected == MTRUE) &&
	    (priv->curr_bss_params.band & BAND_A) &&
	    wlan_11h_radar_detect_required(priv,
					   priv->curr_bss_params.bss_descriptor.
					   channel))
		ret = MTRUE;
	LEAVE();
	return ret;
}
static t_bool wlan_11h_is_slave_active_on_dfs_chan ( mlan_private * priv ) { t_bool ret = MFALSE ; ENTER ( ) ; if ( ( priv -> media_connected == MTRUE ) && ( priv -> curr_bss_params . band & BAND_A ) && wlan_11h_radar_detect_required ( priv , priv -> curr_bss_params . bss_descriptor . channel ) ) ret = MTRUE ; LEAVE ( ) ; return ret ; }
@brief Return whether the slave interface is active, and on DFS channel.
@brief Return whether the slave interface is active and on DFS channel .