software/drivers/sd8887/src/wlan/mlan/mlan_11h.c
/**
 *  @brief Determine if priv is DFS Master interface
 *
 *  @param priv Pointer to mlan_private
 *
 *  @return MTRUE or MFALSE
 */
@brief Determine if priv is DFS Master interface
@param priv Pointer to mlan_private

@return MTRUE or MFALSE
@brief Determine if priv is DFS Master interface @param priv Pointer to mlan_private @return MTRUE or MFALSE
static t_bool
wlan_11h_is_dfs_master(mlan_private *priv)
{
	t_bool ret = MFALSE;
	ENTER();
	if (GET_BSS_ROLE(priv) == MLAN_BSS_ROLE_UAP)
		ret = MTRUE;
	else if ((GET_BSS_ROLE(priv) == MLAN_BSS_ROLE_STA) &&
		 (priv->bss_mode == MLAN_BSS_MODE_IBSS) &&
		 (priv->adhoc_state == ADHOC_STARTED ||
		  priv->adhoc_state == ADHOC_STARTING))
		ret = MTRUE;
	LEAVE();
	return ret;
}
static t_bool wlan_11h_is_dfs_master ( mlan_private * priv ) { t_bool ret = MFALSE ; ENTER ( ) ; if ( GET_BSS_ROLE ( priv ) == MLAN_BSS_ROLE_UAP ) ret = MTRUE ; else if ( ( GET_BSS_ROLE ( priv ) == MLAN_BSS_ROLE_STA ) && ( priv -> bss_mode == MLAN_BSS_MODE_IBSS ) && ( priv -> adhoc_state == ADHOC_STARTED || priv -> adhoc_state == ADHOC_STARTING ) ) ret = MTRUE ; LEAVE ( ) ; return ret ; }
@brief Determine if priv is DFS Master interface
  @param priv Pointer to mlan_private
@brief Determine if priv is DFS Master interface @param priv Pointer to mlan_private
/* UAP: all are master */ /* STA: only ad-hoc creator is master */ /* all other cases = slave interface */