Search Linux Wireless

Re: iwlwifi injection bug

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

 



> -	/* drop all data frame if we are not associated */
> -	if ((!iwl3945_is_associated(priv) ||
> +	/* drop all data frame if we are not associated and not monitoring */
> +	if (((!iwl3945_is_associated(priv) && priv->iw_mode !=
> IEEE80211_IF_TYPE_MNTR) ||
>  	     ((priv->iw_mode == IEEE80211_IF_TYPE_STA) && !priv->assoc_id)) &&
>  	    ((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_DATA)) {
> -		IWL_DEBUG_DROP("Dropping - !iwl3945_is_associated\n");
> +		IWL_DEBUG_DROP("Dropping - !iwl3945_is_associated outside monitor mode\n");
>  		goto drop_unlock;
>  	}

This makes injection not work when you're not exclusively in monitor
mode. Yes, it may break the spec to be sending frames to an arbitrary
station, but it's useful for all kinds of things including testing to
have a monitor and a regular interface working at the same time.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[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