Search Linux Wireless

Re: [PATCH] Adds configure_filter() support for zd1211rw-mac80211

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

 



On Friday 28 September 2007 13:01, Luis R. Rodriguez wrote:
> -static int zd_op_stop(struct ieee80211_hw *hw)
> +void zd_op_stop(struct ieee80211_hw *hw)
static

> +	/* Only deal with supported flags */
> +	changed_flags &= SUPPORTED_FIF_FLAGS;
> +	*new_flags &= SUPPORTED_FIF_FLAGS;
> +
> +	/* changed_flags is always populated but this driver
> +	 * doesn't support all FIF flags so its possible we don't
> +	 * need to do anything */
> +	if (!changed_flags)
> +		return;
> +
> +	if ((*new_flags & (FIF_PROMISC_IN_BSS | FIF_ALLMULTI)) ||
> +	     has_monitor_interfaces(mac)) {
Inconsistent use of SUPPORTED_FIF_FLAGS vs. FIF_PROMISC_IN_BSS | FIF_ALLMULTI.

Also, mac address configuration should be moved to add_interface from the 
start callback.

-Michael Wu

Attachment: pgp7L1QQi0CJW.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