Search Linux Wireless

Re: [PATCH v2] mac80211: add back support for radiotap vendor namespace data

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

 



On Mon, 2014-11-10 at 10:10 +0100, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@xxxxxxxxx>
> 
> Radiotap vendor namespace data might still be useful, but we
> reverted it because it used too much space in the RX status.
> Put it back, but address the space problem by using a single
> bit only and putting everything else into the skb->data.
> 
> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
> ---
>  drivers/net/wireless/mac80211_hwsim.c |  50 +++++++++++++++++
>  include/net/mac80211.h                |  37 +++++++++++++
>  net/mac80211/rx.c                     | 100 ++++++++++++++++++++++++++++------
>  3 files changed, 169 insertions(+), 18 deletions(-)
> 
> diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
> index 209db62ee627..58f11bb0896f 100644
> --- a/drivers/net/wireless/mac80211_hwsim.c
> +++ b/drivers/net/wireless/mac80211_hwsim.c
> @@ -984,6 +984,53 @@ static void mac80211_hwsim_tx_iter(void *_data, u8 *addr,
>  	data->receive = true;
>  }
>  
> +static void mac80211_hwsim_add_vendor_rtap(struct sk_buff *skb)
> +{
> +	/*
> +	 * To enable this code, #define the HWSIM_RADIOTAP_OUI,
> +	 * e.g. like this:
> +	 * #define HWSIM_RADIOTAP_OUI "\x02\x00\x00"
> +	 * (but you should use a valid OUI, not that)
> +	 *
> +	 * If anyone wants to 'donate' a radiotap OUI/subns code
> +	 * please send a patch removing this #ifdef and changing
> +	 * the values accordingly.
> +	 */
> +#ifdef HWSIM_RADIOTAP_OUI

Ah... Thanks! This is now visible even to my aging eyes. :D

--
Luca.

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux