Search Linux Wireless

[PATCH] mac80211: allow crypto with radiotap injection

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

 



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

Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

--- 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:


-
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 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