summaryrefslogtreecommitdiff
path: root/net-wireless/compat-wireless/files/4013-runtime-enable-disable-of-mac80211-packet-injection.patch
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:40:10 +0200
committerBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:40:10 +0200
commit20a107748317091d1ac003f1cbb045928d07e684 (patch)
treebb7c9d0d400d06cf3abc0ba06830d587655c9c85 /net-wireless/compat-wireless/files/4013-runtime-enable-disable-of-mac80211-packet-injection.patch
parent377b452f12024d39dd04b33d4376bf311607f806 (diff)
No audit programs here. deleting this sequence of ebuilds. will replace with compat and broadcom in a few moments
Diffstat (limited to 'net-wireless/compat-wireless/files/4013-runtime-enable-disable-of-mac80211-packet-injection.patch')
-rw-r--r--net-wireless/compat-wireless/files/4013-runtime-enable-disable-of-mac80211-packet-injection.patch37
1 files changed, 0 insertions, 37 deletions
diff --git a/net-wireless/compat-wireless/files/4013-runtime-enable-disable-of-mac80211-packet-injection.patch b/net-wireless/compat-wireless/files/4013-runtime-enable-disable-of-mac80211-packet-injection.patch
deleted file mode 100644
index 82d9a4c2..00000000
--- a/net-wireless/compat-wireless/files/4013-runtime-enable-disable-of-mac80211-packet-injection.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- net/mac80211/tx.c 2009-11-29 14:59:53.474095955 +0100
-+++ net/mac80211/tx.c 2009-11-29 15:03:06.436871431 +0100
-@@ -670,6 +670,10 @@
- return TX_CONTINUE;
- }
-
-+static int ieee80211_injection_patch = 1;
-+module_param(ieee80211_injection_patch, int, 0644);
-+MODULE_PARM_DESC(ieee80211_injection_patch, "Enable packet injection patch");
-+
- static ieee80211_tx_result debug_noinline
- ieee80211_tx_h_sequence(struct ieee80211_tx_data *tx)
- {
-@@ -686,14 +690,20 @@
- * excessive retries (ACKing and retrying should be
- * handled by the injecting application).
- * FIXME This may break hostapd and some other injectors.
-- * This should be done using a radiotap flag.
-+ * This should be done using a radiotap flag. For the time being, this
-+ * may be enabled/disabled in
-+ * /sys/module/mac80211/parameters/ieee80211_injection_patch
- */
-- if (unlikely((info->flags & IEEE80211_TX_CTL_INJECTED) &&
-- !(tx->sdata->u.mntr_flags & MONITOR_FLAG_COOK_FRAMES))) {
-+ if (unlikely(ieee80211_injection_patch &&
-+ (info->flags & IEEE80211_TX_CTL_INJECTED) &&
-+ !(tx->sdata->u.mntr_flags & MONITOR_FLAG_COOK_FRAMES))) {
- if (!ieee80211_has_morefrags(hdr->frame_control))
- info->flags |= IEEE80211_TX_CTL_NO_ACK;
- return TX_CONTINUE;
- }
-+ if (unlikely(!ieee80211_injection_patch &&
-+ info->control.vif->type == NL80211_IFTYPE_MONITOR))
-+ return TX_CONTINUE;
-
- if (unlikely(ieee80211_is_ctl(hdr->frame_control)))
- return TX_CONTINUE;