linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: allow crypto with radiotap injection
@ 2007-08-11  9:30 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2007-08-11  9:30 UTC (permalink / raw)
  To: John W. Linville; +Cc: Jiri Benc, linux-wireless

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:



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-11  9:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-11  9:30 [PATCH] mac80211: allow crypto with radiotap injection Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).