Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: Jiri Benc <jbenc@suse.cz>, linux-wireless@vger.kernel.org
Subject: [PATCH] mac80211: allow crypto with radiotap injection
Date: Sat, 11 Aug 2007 11:30:34 +0200	[thread overview]
Message-ID: <1186824634.5363.7.camel@johannes.berg> (raw)

As discussed on the radiotap list, the WEP flag should be used for this.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>

--- wireless-dev.orig/net/mac80211/tx.c	2007-08-11 11:05:12.029563528 +0200
+++ wireless-dev/net/mac80211/tx.c	2007-08-11 11:26:14.059563528 +0200
@@ -865,6 +865,7 @@ __ieee80211_parse_tx_radiotap(
 			/*
 			 * radiotap rate u8 is in 500kbps units eg, 0x02=1Mbps
 			 * ieee80211 rate int is in 100kbps units eg, 0x0a=1Mbps
+			 * TODO: auto-select when the rate field is not present!
 			 */
 			target_rate = (*iterator.this_arg) * 5;
 			for (i = 0; i < mode->num_rates; i++) {
@@ -912,6 +913,8 @@ __ieee80211_parse_tx_radiotap(
 
 				skb_trim(skb, skb->len - FCS_LEN);
 			}
+			if (*iterator.this_arg & IEEE80211_RADIOTAP_F_WEP)
+				control->flags &= ~IEEE80211_TXCTL_DO_NOT_ENCRYPT;
 			break;
 
 		default:



                 reply	other threads:[~2007-08-11  9:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1186824634.5363.7.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=jbenc@suse.cz \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox