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