software/drivers/sd8887/src/wlan/mlan/mlan_cfp.c
/**
 *  @brief This function copies dynamic CFP elements from one table to another.
 *         Only copy elements where channel numbers match.
 *
 *  @param pmadapter   A pointer to mlan_adapter structure
 *  @param cfp         Destination table
 *  @param num_cfp     Number of elements in dest table
 *  @param cfp_src     Source table
 *  @param num_cfp_src Number of elements in source table
 */
@brief This function copies dynamic CFP elements from one table to another.
Only copy elements where channel numbers match.


@brief This function copies dynamic CFP elements from one table to another . Only copy elements where channel numbers match .
static t_void
wlan_cfp_copy_dynamic(pmlan_adapter pmadapter,
		      chan_freq_power_t *cfp, t_u8 num_cfp,
		      chan_freq_power_t *cfp_src, t_u8 num_cfp_src)
{
	int i, j;
	ENTER();
	for (i = 0; i < num_cfp; i++)
		cfp[i].dynamic.blacklist = MFALSE;
	if (cfp_src) {
		for (i = 0; i < num_cfp; i++)
			for (j = 0; j < num_cfp_src; j++)
				if (cfp[i].channel == cfp_src[j].channel) {
					cfp[i].dynamic.blacklist =
						cfp_src[j].dynamic.blacklist;
					break;
				}
	}
	LEAVE();
}
static t_void wlan_cfp_copy_dynamic ( pmlan_adapter pmadapter , chan_freq_power_t * cfp , t_u8 num_cfp , chan_freq_power_t * cfp_src , t_u8 num_cfp_src ) { int i , j ; ENTER ( ) ; for ( i = 0 ; i < num_cfp ; i ++ ) cfp [ i ] . dynamic . blacklist = MFALSE ; if ( cfp_src ) { for ( i = 0 ; i < num_cfp ; i ++ ) for ( j = 0 ; j < num_cfp_src ; j ++ ) if ( cfp [ i ] . channel == cfp_src [ j ] . channel ) { cfp [ i ] . dynamic . blacklist = cfp_src [ j ] . dynamic . blacklist ; break ; } } LEAVE ( ) ; }
@brief This function copies dynamic CFP elements from one table to another.
@brief This function copies dynamic CFP elements from one table to another .
/* first clear dest dynamic blacklisted entries */ /* copy dynamic blacklisted entries from source where channels match */