software/drivers/sd8887/src/wlan/mlinux/moal_ioctl.c
/**
 *  @brief Remove RX Filter
 *
 *  @param priv                 A pointer to moal_private structure
 *  @param rxfilter             A pointer to rxfilter string.
 *
 *  @return                     MLAN_STATUS_SUCCESS -- success, otherwise fail
 */
@brief Remove RX Filter
@param priv                 A pointer to moal_private structure
@param rxfilter             A pointer to rxfilter string.

@return                     MLAN_STATUS_SUCCESS -- success, otherwise fail
@brief Remove RX Filter @param priv A pointer to moal_private structure @param rxfilter A pointer to rxfilter string . @return MLAN_STATUS_SUCCESS -- success otherwise fail
mlan_status
woal_remove_rxfilter(moal_private *priv, char *rxfilter)
{
	mlan_status ret = MLAN_STATUS_SUCCESS;
	ENTER();
	if (*rxfilter == '0') {
		PRINTM(MIOCTL, "Remove IPV4 multicast filter\n");
		priv->rx_filter &= ~RX_FILTER_IPV4_MULTICAST;
	} else if (*rxfilter == '1') {
		PRINTM(MIOCTL, "Remove broadcast filter\n");
		priv->rx_filter &= ~RX_FILTER_BROADCAST;
	} else if (*rxfilter == '2') {
		PRINTM(MIOCTL, "Remove unicast filter\n");
		priv->rx_filter &= ~RX_FILTER_UNICAST;
	} else if (*rxfilter == '3') {
		PRINTM(MIOCTL, "Remove IPV6 multicast fitler\n");
		priv->rx_filter &= ~RX_FILTER_IPV6_MULTICAST;
	} else {
		PRINTM(MERROR, "unsupported rx fitler\n");
		ret = MLAN_STATUS_FAILURE;
		goto done;
	}
done:
	LEAVE();
	return ret;
}
mlan_status woal_remove_rxfilter ( moal_private * priv , char * rxfilter ) { mlan_status ret = MLAN_STATUS_SUCCESS ; ENTER ( ) ; if ( * rxfilter == ' ' ) { PRINTM ( MIOCTL , " \n " ) ; priv -> rx_filter &= ~ RX_FILTER_IPV4_MULTICAST ; } else if ( * rxfilter == ' ' ) { PRINTM ( MIOCTL , " \n " ) ; priv -> rx_filter &= ~ RX_FILTER_BROADCAST ; } else if ( * rxfilter == ' ' ) { PRINTM ( MIOCTL , " \n " ) ; priv -> rx_filter &= ~ RX_FILTER_UNICAST ; } else if ( * rxfilter == ' ' ) { PRINTM ( MIOCTL , " \n " ) ; priv -> rx_filter &= ~ RX_FILTER_IPV6_MULTICAST ; } else { PRINTM ( MERROR , " \n " ) ; ret = MLAN_STATUS_FAILURE ; goto done ; } done : LEAVE ( ) ; return ret ; }
@brief Remove RX Filter
  @param priv                 A pointer to moal_private structure
  @param rxfilter             A pointer to rxfilter string.
@brief Remove RX Filter @param priv A pointer to moal_private structure @param rxfilter A pointer to rxfilter string .