diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2014-02-15 23:24:26 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2014-02-15 23:24:26 +0200 |
commit | 7224c1253228e5c29c78cb3f0f26ce34770f2356 (patch) | |
tree | 1684924656132935256e034f35f92abee6623265 /net-wireless/compat-wireless/files/failed_ieee80211_inject-2.6.22.patch |
Added ebuilds for kogaion desktop
Diffstat (limited to 'net-wireless/compat-wireless/files/failed_ieee80211_inject-2.6.22.patch')
-rw-r--r-- | net-wireless/compat-wireless/files/failed_ieee80211_inject-2.6.22.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/net-wireless/compat-wireless/files/failed_ieee80211_inject-2.6.22.patch b/net-wireless/compat-wireless/files/failed_ieee80211_inject-2.6.22.patch new file mode 100644 index 00000000..f31a0f01 --- /dev/null +++ b/net-wireless/compat-wireless/files/failed_ieee80211_inject-2.6.22.patch @@ -0,0 +1,26 @@ +--- linux-2.6.23_orig/net/ieee80211/ieee80211_tx.c 2007-10-09 22:31:38.000000000 +0200 ++++ linux-2.6.23/net/ieee80211/ieee80211_tx.c 2007-10-14 19:39:49.000000000 +0200 +@@ -293,6 +293,23 @@ + + ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto); + ++ if(ieee->iw_mode == IW_MODE_MONITOR) ++ { ++ txb = ieee80211_alloc_txb(1, skb->len, ++ ieee->tx_headroom, GFP_ATOMIC); ++ if (unlikely(!txb)) { ++ printk(KERN_WARNING "%s: Could not allocate TXB\n", ++ ieee->dev->name); ++ goto failed; ++ } ++ ++ txb->encrypted = 0; ++ txb->payload_size = skb->len; ++ skb_copy_from_linear_data(skb, skb_put(txb->fragments[0],skb->len), skb->len); ++ ++ goto success; ++ } ++ + crypt = ieee->crypt[ieee->tx_keyidx]; + + encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) && |