Search Linux Wireless

Re: [PATCH 03/21] mac80211: revamp interface and filter configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 05 September 2007 19:42, Johannes Berg wrote:
> +	/*
> +	 * Configure the device's RX filter.
> +	 *
> +	 * If get_mc_item is assigned, then the multicast address filter
> +	 * must be changed if the hardware flags indicate that one is
> +	 * present. The get_mc_item function should be called until it
> +	 * returns %NULL, it must be passed the @get_mc_data pointer
> +	 * each time.
> +	 *
> +	 * All unsupported flags in 'total_flags' must be cleared,
> +	 * clear all bits except those you honoured.
> +	 *
> +	 * The callback must be implemented and must be atomic.
> +	 */
> +	void (*configure_filter)(struct ieee80211_hw *hw,
> +				 struct dev_mc_list *(get_mc_item)(void *data),
Yuck. Preventing drivers from calling get_mc_item outside configure_filter or 
when the filter hasn't changed isn't worth doing this to enforce it. ;)

> +				 void *get_mc_data,
> +				 unsigned int changed_flags,
> +				 unsigned int *total_flags);

Attachment: pgp90XKk5wQJd.pgp
Description: PGP signature


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux