Search Linux Wireless

Re: [PATCH 2/4] mac80211: Add radiotap support for Monitor mode RX

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

 



> +	/* Driver supports radiotap. */
> +#define IEEE80211_HW_RADIOTAP_SUPPORTED (1<<10)

> +	if (local->monitors &&
> +	    local->hw.flags & IEEE80211_HW_RADIOTAP_SUPPORTED) {
> +		radiotap_len = ieee80211_get_radiotap_len(skb);
> +		skb_pull(skb, radiotap_len);
> +	}

I don't think that can work. 

 1) it needs a lot more documentation on what a driver needs to do for
    this (for example that it should only add radiotap headers if a
    monitor interface was added)

 2) afaik local->monitors is increased even for soft monitor interfaces,
    thus this will really fall on its nose when the driver supports
    radiotap but not monitor during operation.

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