Debian Codegraph @

patches/ieee80211_inject-2.6.22.patch

raw
1 --- linux-2.6.23_orig/net/ieee80211/ieee80211_tx.c 2007-10-09 22:31:38.000000000 +0200
2 +++ linux-2.6.23/net/ieee80211/ieee80211_tx.c 2007-10-14 19:39:49.000000000 +0200
3 @@ -293,6 +293,23 @@
4
5 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto);
6
7 + if(ieee->iw_mode == IW_MODE_MONITOR)
8 + {
9 + txb = ieee80211_alloc_txb(1, skb->len,
10 + ieee->tx_headroom, GFP_ATOMIC);
11 + if (unlikely(!txb)) {
12 + printk(KERN_WARNING "%s: Could not allocate TXB\n",
13 + ieee->dev->name);
14 + goto failed;
15 + }
16 +
17 + txb->encrypted = 0;
18 + txb->payload_size = skb->len;
19 + skb_copy_from_linear_data(skb, skb_put(txb->fragments[0],skb->len), skb->len);
20 +
21 + goto success;
22 + }
23 +
24 crypt = ieee->crypt[ieee->tx_keyidx];
25
26 encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) &&