software/drivers/sd8887/src/wlan/mlinux/moal_ioctl.c
/**
 *  @brief Copy multicast table
 *
 *  @param mlist    A pointer to mlan_multicast_list structure
 *  @param dev      A pointer to net_device structure
 *
 *  @return         Number of multicast addresses
 */
@brief Copy multicast table
@param mlist    A pointer to mlan_multicast_list structure
@param dev      A pointer to net_device structure

@return         Number of multicast addresses
@brief Copy multicast table @param mlist A pointer to mlan_multicast_list structure @param dev A pointer to net_device structure @return Number of multicast addresses
static inline int
woal_copy_mcast_addr(mlan_multicast_list *mlist, struct net_device *dev)
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35)
	struct dev_mc_list *mcptr = dev->mc_list;
	int i = 0;
#else
	struct netdev_hw_addr *mcptr = NULL;
#endif 
	ENTER();
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35)
	for (i = 0; i < dev->mc_count && mcptr; i++) {
		woal_copy_mc_addr(mlist, mcptr->dmi_addr);
		mcptr = mcptr->next;
	}
#else
	netdev_for_each_mc_addr(mcptr, dev)
		woal_copy_mc_addr(mlist, mcptr->addr);
#endif 
	LEAVE();
	return mlist->num_multicast_addr;
}
static inline int woal_copy_mcast_addr ( mlan_multicast_list * mlist , struct net_device * dev ) { #if LINUX_VERSION_CODE < KERNEL_VERSION ( 2 , 6 , 35 ) struct dev_mc_list * mcptr = dev -> mc_list ; int i = 0 ; #else struct netdev_hw_addr * mcptr = NULL ; #endif ENTER ( ) ; #if LINUX_VERSION_CODE < KERNEL_VERSION ( 2 , 6 , 35 ) for ( i = 0 ; i < dev -> mc_count && mcptr ; i ++ ) { woal_copy_mc_addr ( mlist , mcptr -> dmi_addr ) ; mcptr = mcptr -> next ; } #else netdev_for_each_mc_addr ( mcptr , dev ) woal_copy_mc_addr ( mlist , mcptr -> addr ) ; #endif LEAVE ( ) ; return mlist -> num_multicast_addr ; }
@brief Copy multicast table
  @param mlist    A pointer to mlan_multicast_list structure
  @param dev      A pointer to net_device structure
@brief Copy multicast table @param mlist A pointer to mlan_multicast_list structure @param dev A pointer to net_device structure
/* < 2.6.35 */ /* < 2.6.35 */